Skip to content

Instantly share code, notes, and snippets.

@ildarkhasanshin
Created November 1, 2016 07:52
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 ildarkhasanshin/e783b84783711d6996946387986e1488 to your computer and use it in GitHub Desktop.
Save ildarkhasanshin/e783b84783711d6996946387986e1488 to your computer and use it in GitHub Desktop.
yandex-maps
<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