Leaflet map issue in Safari using iPhone and iPad

前端 未结 2 601
小蘑菇
小蘑菇 2021-01-03 10:28

I am having some weird issue with the leaflet map using Safari in iPhone and iPad. I am using an AJAX GET request to fetch the markers on the map and binding the popup conte

2条回答
  •  日久生厌
    2021-01-03 10:55

    I came across this issue while testing my app on iOS devices. The problem is that Safari does not support pointer-events as described on caniuse.com and because the googleMutant plugin CSS sets the z-index value to 1000 via the use of the leaflet-top CSS class, the browser considers it to be located above everything else.

    This results in your clicks and touches being triggered on the googleMutant layer rather than the control layer.

    Resetting the z-index value to a lower value, at least one that is lower than the value for the control layer should fix this problem. At least it did for me.

提交回复
热议问题