Last active
July 31, 2020 14:24
-
-
Save IgorGavrilenko/5929dd059fb9f7d7cb0e1ea89079a4c7 to your computer and use it in GitHub Desktop.
яндекс карта
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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