Skip to content

Instantly share code, notes, and snippets.

@Loiree
Created December 28, 2016 11:29
Show Gist options
  • Save Loiree/d273e0fd6cddb93498e92c6c56bbe724 to your computer and use it in GitHub Desktop.
Save Loiree/d273e0fd6cddb93498e92c6c56bbe724 to your computer and use it in GitHub Desktop.
head
script(src="https://api-maps.yandex.ru/2.0-stable/?load=package.standard&lang=ru-RU" type="text/javascript")
script.
var myMap;
ymaps.ready(function(){
// создание карты
myMap = new ymaps.Map("map", {
center: [55.76, 37.64],
zoom: 14
});
// точка на карте
var myPoint = new ymaps.Placemark([55.76, 37.62]);
// прикрепление точки к карте
myMap.geoObjects.add(myPoint);
});
body
#map(style="width:300px; height:300px;")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment