Open GoogleCodeExporter opened 8 years ago
Also, there is another problem!!! When you zoom out so that you see the whole
earth,
the clusters will not cluster together! And again, if you remove the call to
clearMarkers(), it works as expected - the bug disappears.
And another problem - if you set maxZoom to some value in this example, it will
not
respect it - the cluster will remain even in the maximal zoom possible. And
again, if
you remove the call to clearMarkers(), it works as expected - the bug
disappears.
It seems that if you call clearMarkers() and then addMarkers(), the markers go
into
some erroneous state in which they are no longer dynamic.
Original comment by tomas.te...@gmail.com
on 12 Jan 2010 at 8:22
The problem with the clearMarkers is that the function removes the GEvent
listener so
the clusterer no longer reacts to zoom levels or changes to the GMap2 object.
Basically to fix the problem I commented out this line from the
markerclusterer.js(146):
GEvent.removeListener(mcfn_);
Original comment by n9.adr...@gmail.com
on 8 Apr 2010 at 4:40
Original issue reported on code.google.com by
tomas.te...@gmail.com
on 16 Dec 2009 at 3:20Attachments: