Closed GoogleCodeExporter closed 9 years ago
I had the same problem as well. I fixed it by only declaring my MarkerClusterer
once during initialization:
markerCluster = new MarkerClusterer(map);
and then adding markers using a loop after clearing. Something like:
markerCluster.clearMarkers();
if(markers)
{
for(i in markers)
{
markerCluster.addMarker(markers[i]);
}
}
Hope that helps steer you in the right direction. :D
Original comment by Bobidy...@gmail.com
on 7 Jun 2010 at 7:59
Thanks a lot. It helped.
Original comment by catu...@gmail.com
on 17 Jun 2010 at 9:09
I'm not able to replicate your problem. It maybe have been fixed with recent
releases.
Original comment by lu...@google.com
on 19 Oct 2010 at 4:07
Hi... Just an observation. You do not need to do this 'for', simply just use
the 'addMarkers':
if (markers) {
markerCluster.addMarkers(markers);
}
Original comment by fernando...@gmail.com
on 13 May 2013 at 2:14
Original issue reported on code.google.com by
catu...@gmail.com
on 2 Jun 2010 at 2:24Attachments: