Created
November 1, 2016 07:52
-
-
Save ildarkhasanshin/e783b84783711d6996946387986e1488 to your computer and use it in GitHub Desktop.
yandex-maps
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="//api-maps.yandex.ru/2.1/?lang=ru_RU" type="text/javascript"></script> | |
<script type="text/javascript"> | |
ymaps.ready( function () { | |
var myMap = new ymaps.Map( 'map', { | |
center: [ 55.582335, 37.669342 ], | |
zoom: 16, | |
controls: [ "zoomControl" ] | |
}, { | |
searchControlProvider: 'yandex#search' | |
} ), | |
myPlacemark = new ymaps.Placemark( myMap.getCenter(), { | |
hintContent: 'хинт балуна', | |
balloonContent: 'контент балуна' | |
}, { | |
iconLayout: 'default#image', | |
iconImageHref: '/images/marker.png', | |
iconImageSize: [ 81, 72 ], | |
iconImageOffset: [ -20, -75 ] | |
} ); | |
myMap.behaviors.disable( 'scrollZoom' ); | |
myMap.geoObjects.add( myPlacemark ); | |
} ); | |
</script> | |
<style> | |
html, | |
body, | |
#map { | |
width: 100%; | |
height: 100%; | |
padding: 0; | |
margin: 0; | |
} | |
</style> | |
<div id="map"></div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment