Hello,
I have a similar problem with my map, I hide some markers (via categorie) but the cluster (bubbles) will not be updated
I have this function to hide/display markers
function displayMarkers(category) {
var i;
for (i = 0; i < markers.length; i++) {
if (markers[i].category == category) {
if (markers[i].getVisible()) {
markers[i].setVisible(false);
}else{
markers[i].setVisible(true);
}
}
}
}
after this funtion I called:
markerCluster.resetViewport();
markerCluster.redraw();
markerCluster.repaint();
but none of them worked (i tried it as single call and as combination)
markerCluster.resetViewport();
will remove all clusters including the markers in the clusters
markerCluster.redraw();
lets the map blink 1 times but all clusters are still here
markerCluster.repaint();
nothing happend
I use
* @name MarkerClusterer for Google Maps v3
* @version version 1.0.1
Any ideas ?
Best Regards
Jens