P
P
Pasher1232019-02-18 16:48:46
JavaScript
Pasher123, 2019-02-18 16:48:46

How to fix Yandex maps?

5c6ab7a1930c1050154837.png
The code:

<script src="//api-maps.yandex.ru/2.1/?lang=ru_RU" type="text/javascript"></script>

ymaps.ready(function () {
       var myMap = new ymaps.Map("ymap", {
            center: [56.489291, 84.968917],
            zoom: 17
        }),
            myPlacemark = new ymaps.Placemark([56.489291, 84.968917], {
          balloonContentHeader: "",
          balloonContentBody: ""
          
        });
        myMap.geoObjects.add(myPlacemark);
        myMap.behaviors.enable('scrollZoom');
    });

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Sukhanov, 2019-02-18
@xazbix

Normally it works:
Add:
And we get:5c6ac4aa90f4d879059032.png

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question