jawj / OverlappingMarkerSpiderfier

Deals with overlapping markers in Google Maps JS API v3, Google Earth-style
http://blog.mackerron.com
836 stars 238 forks source link

Wrong marker format with MarkerClusterer(Plus) after zooming in #168

Open vsemionov opened 4 years ago

vsemionov commented 4 years ago

Hi @jawj,

Many thanks for creating this cool library!

I use it together with MarkerClustererPlus and I ran into a small problem with the marker format (status) while zooming the map. Similar problems also happen with MarkerClusterer (without Plus).

MarkerClustererPlus issue:

After manually zooming in to uncluster a group of markers with identical positions, the marker status is unspiderfiable instead of spiderfiable. It happens every time. To reproduce:

  1. Add two markers with identical positions.
  2. Configured the clusterer's maxZoom (I use 15).
  3. Manually zoom in until the markers are no longer clustered. By manual zoom, I mean click the map's plus widget, not the cluster. The markers should be spiderfiable, but they are not (their status is unspiderfiable). If you zoom in once more, they become spiderfiable.

MarkerClusterer issues:

Issue 1

Same as the MarkerClusterer issue above.

Issue 2

After clicking a cluster to zoom into a group of markers with identical positions, the marker status is unspiderfiable instead of spiderfiable. It happens sometimes (about half of the time). To reproduce:

  1. Add two markers with identical positions.
  2. Configured the clusterer's maxZoom (I use 15).
  3. Click the cluster to zoom in. The markers are no longer clustered. The markers should be spiderfiable, but sometimes they are not (their status is unspiderfiable).
alessioerosferri commented 3 years ago

Any news on this? I have the same issue

Jollus174 commented 2 years ago

I've noticed a few people have run into this problem (myself included). This posted solution worked for me: https://github.com/jawj/OverlappingMarkerSpiderfier/issues/103#issuecomment-327900374

It's important that the un-minified version of the library is also used in order for this to work.