Closed Remo closed 7 years ago
Created a PR that works so far, requires more testing, CLA and so on.. Code will only work if repaint
is called after changing the markers visibility
this PR does the trick for me https://github.com/googlemaps/js-marker-clusterer/pull/33
This has been implemented here https://github.com/gmaps-marker-clusterer/gmaps-marker-clusterer
Hi. Have same trouble while using https://developers.google.com/maps/documentation/javascript/examples/markerclusterer/markerclusterer.js ?
@zelds have you seen my comment above? You are using an unsupported version, try ours at https://github.com/gmaps-marker-clusterer/gmaps-marker-clusterer
I'm using a toggle button to hide/show certain markers. Those that are part of a cluster have a problem. If I dyncamically hide
marker.setVisible(false/true)
all markers of a cluster the cluster stays visible.I tried to call
redraw
andrepaint
, but both methods don't seem to consider the visibility of the marker. Any ideas about the correct way to do that?