GoogleMap Markers are Not Clickable on the Mobile Devices

前端 未结 2 1932
日久生厌
日久生厌 2021-01-21 15:22

GoogleMap Markers are Not Clickable on the Mobile Devices (Touch Screens).
But, ok on any PC, so I can\'t figure out what is the point.
Here is my code:

2条回答
  •  粉色の甜心
    2021-01-21 15:59

    I found the following solution : 1. create marker with option

    "optimized: false" : ex => new google.maps.Marker({..., optimized: false, ...});
    
    1. adding another event listener

    google.maps.event.addDomListener(marker, "click", function() {...});

    From google forum

提交回复
热议问题