Zooming while clusters render causes map to freeze

jac*_*ada 5 javascript google-maps markerclusterer ios ionic-framework

I am using the gmaps-marker-clusterer library (v1.2.0) together with the Google Maps API on an Ionic v1 app to group map markers in clusters based on the zoom level.

I am currently stuck on one particular issue caused by the library (it does not happen when I am not using it) that somehow makes the map freeze on a weird one-finger zoom mode. Essentially, when zooming in or out while the clusters are rendering, the map gets stuck, does not load anymore and instead of rendering new map textures when the user tries to move the centre of the map it just zooms in or out (but without rendering or loading). No error message is being displayed.

当地图初始化时,所有标记 (40/50) 一起加载,仅加载一次。这仅发生在实际的 iPhone 设备上。我没有在 Android 上测试过它,但我可以说在浏览器中测试应用程序时不会发生这种情况。在此处查看冻结地图的屏幕截图。

有没有人遇到过类似的事情?任何帮助将不胜感激,谢谢!

小智 0

尝试仅加载视图中的标记