Экспорт:
Папки
/root/polzovateli/var_null/internet-resursi/dannie/karti/yandekskarti/Javascript-API-kart
Не экспортировать закрытые директории
Преобразовывать заметки в html
Экспортировать
Применить |
| 2015-03-18 15:11:23 |
var myMap;
// API DOM.
ymaps.ready(init);
function init () {
//
// id ("map").
myMap = new ymaps.Map('map', {
//
// .
center: [55.76, 37.64], //
zoom: 10
});
var myPlacemark = new ymaps.Placemark(
//
[55.76, 37.64] , {
//
//
iconContent: 'ddd',
balloonContent: '<div style="border:1px solid #ff0000; padding:5px">. <br></div>',
balloonContentHeader:' ',
balloonContentFooter:' '
}, {
//
//
preset: 'twirl#blueStretchyIcon'
});
myMap.geoObjects.add(myPlacemark); // .
}
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>. .</title>
<!--
API
API , URL (http://...)
-->
<script src="//api-maps.yandex.ru/2.1/?lang=ru_RU" type="text/javascript"></script>
<script src="mapbasics.js" type="text/javascript"></script>
<style>
body, html {
padding: 0;
margin: 0;
width: 100%;
height: 100%;
}
#map {
width: 100%;
height: 90%;
}
</style>
</head>
<body>
<div id="map"></div>
<input type="button" id="destroyButton" value=" "/>
</body>
</html>
// API DOM.
ymaps.ready(init);
function init () {
//
// id ("map").
myMap = new ymaps.Map('map', {
//
// .
center: [55.76, 37.64], //
zoom: 10
});
var myPlacemark = new ymaps.Placemark(
//
[55.76, 37.64] , {
//
//
iconContent: 'ddd',
balloonContent: '<div style="border:1px solid #ff0000; padding:5px">. <br></div>',
balloonContentHeader:' ',
balloonContentFooter:' '
}, {
//
//
preset: 'twirl#blueStretchyIcon'
});
myMap.geoObjects.add(myPlacemark); // .
}
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>. .</title>
<!--
API
API , URL (http://...)
-->
<script src="//api-maps.yandex.ru/2.1/?lang=ru_RU" type="text/javascript"></script>
<script src="mapbasics.js" type="text/javascript"></script>
<style>
body, html {
padding: 0;
margin: 0;
width: 100%;
height: 100%;
}
#map {
width: 100%;
height: 90%;
}
</style>
</head>
<body>
<div id="map"></div>
<input type="button" id="destroyButton" value=" "/>
</body>
</html>
Подробнее по ссылке: https://tech.yandex.ru/maps/jsbox/2.1/ | 2015-03-02 11:27:54 |
Песочница
Подробнее по ссылке: https://tech.yandex.ru/maps/doc/jsapi/2.1/dg/concepts/geoobjects-docpage/ | 2015-03-02 11:27:05 |
Объекты на карте