Skip to content

Instantly share code, notes, and snippets.

@IgorGavrilenko

IgorGavrilenko/ymaps

Last active Jul 31, 2020
Embed
What would you like to do?
яндекс карта
<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
You can’t perform that action at this time.