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 Am Mittwoch, 9. Februar 2011 02:33:09 UTC+1 schrieb Luke (Google Employee): > > The MarkerClusterer wasn't really designed for this, but I just added a > function called repaint() that will hopefully make it a bit nicer for you. > > repaint() essentially creates a copy of the clusters then generates new > ones and the removes the copy. > > Just download the lastest version from > http://google-maps-utility-library-v3.googlecode.com/svn/trunk/markerclusterer/ > > Let me know if you run into any problems. > > -- Luke > > On Wed, Feb 9, 2011 at 11:08 AM, Mr T <ted.pe...@gmail.com <javascript:>> > wrote: > >> Well, from the docs it seems resetViewport() recalulates the clusters >> but does not redraw them, right? >> >> If I resetViewport() and then redraw() it works, but then I am back to >> everything flashing on and off. >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Google Maps JavaScript API v3" group. >> To post to this group, send email to google-map...@googlegroups.com >> <javascript:>. >> To unsubscribe from this group, send email to >> google-maps-js-api-v3+unsubscr...@googlegroups.com <javascript:>. >> For more options, visit this group at >> http://groups.google.com/group/google-maps-js-api-v3?hl=en. >> >> > -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-maps-js-api-v3+unsubscr...@googlegroups.com. To post to this group, send email to google-maps-js-api-v3@googlegroups.com. Visit this group at http://groups.google.com/group/google-maps-js-api-v3. For more options, visit https://groups.google.com/d/optout.