P
P
ProfessorShady2020-11-22 17:14:32
safari
ProfessorShady, 2020-11-22 17:14:32

Why don't Yandex maps v2.1 work in safari on ios 13?

Works in all browsers except Safari on ios 13.1.3. It even works in chrome on ios. The bottom line is that the map itself is displayed, but completely non-clickable, does not respond to pressing, moving, and to auxiliary control buttons, such as zooming in. On ipad of the same version of ios it works. What could be the problem?

<div class="map__map" id="main-map" style="width: 100%; height: 710px"></div>
<script>
    ymaps.ready(init);

    function init() {
      var map = new ymaps.Map("main-map", {
        center: [35.138223, 33.229774],
        controls: ['zoomControl'],
        zoom: 10
      }, {
        minZoom: 9,
        maxZoom: 11
      });
      map.behaviors.disable('scrollZoom')
</script>


You can reproduce the problem through the usual Safari on mac os, in responsive design mode, select iphone and ios version there, these maps do not work even on other sites with their examples and even on the site with documentation of api maps from Yandex here

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question