Answer the question
In order to leave comments, you need to log in
How to stretch a Yandex map by 100%?
The code:
<script src="http://api-maps.yandex.ru/2.0-stable/?load=package.standard&lang=ru-RU" type="text/javascript"></script>
<div id="map" style="width: 100%; height: 100%"></div>
<script type="text/javascript">
ymaps.ready(init);
var myMap;
function init(){
myMap = new ymaps.Map ("map", {
center: [55.76, 37.64],
zoom: 10,
});
myMap.behaviors.enable('scrollZoom')
myPlacemark = new ymaps.Placemark([55.70, 37.60], {
});
myMap.geoObjects.add(myPlacemark);
}
</script>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question