googlearchive / js-marker-clusterer

A marker clustering library for the Google Maps JavaScript API v3.
https://googlemaps.github.io/js-marker-clusterer/docs/reference.html
Apache License 2.0
1.28k stars 775 forks source link

Doesn't de-cluster at max zoom, instead cluster vanishes #7

Open TheSisb opened 9 years ago

TheSisb commented 9 years ago

I tried both MarkerClusterer and MarkerClustererPlus and when I have two markers very close to one another problems arise. I keep clicking the cluster until I reach the max zoom. The next click will either do nothing to the cluster icon or remove it and not show the individual markers. I noticed the Leaflet clusterer de-clusters the markers and has lines that lead to their point of origin, so they decluster cleanly.

Any chance of fixing this to at least de-cluster at max zoom? I tried implementing it myself, but I don't know how this is achieved since each tile potentially has it's own maxZoom. The library's maxZoom property doesn't help at all when switching from Maps to Satelite, which has a much lower maxZoom in general. I found the API's "maxZoomService" but I don't want to query that for every action to see if I need de-cluster. Ideas would be greatly appreciated.

ThomasPerraudin commented 9 years ago

+1

Edza commented 9 years ago

I have seen this too. Workaround is to just set google maps max zoom on the map object.

KurtPreston commented 8 years ago

+1

KristiyanKrastev commented 8 years ago

+1

TheSisb commented 8 years ago

This issue, along with many other limitations in the Google Maps API requiring workarounds forced our business away from Google Maps. We're now using Leaflet and Mapbox with great success.

dincho commented 8 years ago

This issue, along with many other limitations in the Google Maps API requiring workarounds forced our business away from Google Maps. We're now using Leaflet and Mapbox with great success.

:+1:

asiminiceanu commented 8 years ago

+1

dzavodnikov commented 8 years ago

+1

JulienPageaud commented 7 years ago

+2

nhducseuit commented 5 years ago

I'm now using markerclustererplus 2.1.11. And it seems that it cannot, or takes a very long time to de-cluster when the map zoom reaches maxZoom configured for the MarkerClusterer, where there are points that sit very closely or at same coordinate in that cluster. What should I do?