googlearchive/js-marker-clusterer

Marker icon display bugs when setting maxZoom with custom icons

StanIsAdmin opened this issue · 1 comments

I have a google map where I create markers with custom icons, and there are hundreds of these icons.
I'd like not to cluster them when zooming beyond a certain level, so I tried using the maxZoom option (I have tried values 14, 15 and 16).

Whenever I create multiple markers close to each other at high zoom levels then zoom in and out, graphical bugs start appearing.
So far, here are the bugs I've seen:

  • One or more (sometimes all) markers adopt the same icon, always one of the original icons used for one of the markers
  • Icons do not appear whole
  • Icons are shown multiple times
  • Any combination of the above

I should state that I have no problem whatsoever whenever I simply do not set the maxZoom option.

Here is an example of such a bug (I had to add a marker for the last one to happen) :

capture
capture1
capture2
capture3

Any help solving this would be greatly appreciated, thanks for all the hard work and support 👍

Remo commented

In case someone sees this issue, here's a discussion about this gmaps-marker-clusterer/gmaps-marker-clusterer#27