Skip to content

Instantly share code, notes, and snippets.

@IgorGavrilenko
Last active July 31, 2020 14:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save IgorGavrilenko/5929dd059fb9f7d7cb0e1ea89079a4c7 to your computer and use it in GitHub Desktop.
Save IgorGavrilenko/5929dd059fb9f7d7cb0e1ea89079a4c7 to your computer and use it in GitHub Desktop.
яндекс карта
<script src="https://api-maps.yandex.ru/2.1/?lang=ru_RU" type="text/javascript"></script>
<script>
ymaps.ready(function() {
var hpMap = new ymaps.Map('h-map', {
center: [55.9924852, 38.3717429],
zoom: 7,
controls: ['zoomControl']
}),
myPlacemark = new ymaps.Placemark(hpMap.getCenter(), {
balloonContent: '142432, Россия, Московская обл., г. Черноголовка, пр. 1-й, д. 4, ком. 215',
hintContent: "142432, Россия, Московская обл., г. Черноголовка, пр. 1-й, д. 4, ком. 215"
}, {
iconLayout: 'default#image',
iconImageHref: '/img/icon/pin.svg',
iconImageSize: [32, 48],
iconImageOffset: [-3, -42]
});
hpMap.behaviors.disable('scrollZoom');
hpMap.geoObjects.add(myPlacemark);
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment