ymaps ready init var myMap myPlacemark function init myMap new ymaps M

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
ymaps.ready(init);
var myMap,
myPlacemark;
function init(){
myMap = new ymaps.Map ("map", {
center: [56.851792,53.212127],
zoom: 14
});
myPlacemark = new ymaps.Placemark([56.851792,53.212127], {}, {
iconImageHref: 'img/placemark.png'
});
myMap.geoObjects.add(myPlacemark);
}