Here is the answer from Luke Mahe which solved my problem : "The MarkerClusterer sets all markers map to be null because it doesn't need a marker to be attached to a map and this also improves performance. I would suggest that you take a different approach and keep an array of all your markers and then when you change your filter go though your marker array and create a new array of those who match your filter, then you can clear out the markers in the MarkerClusterer and pass in the new array that you have."
Thanks again Luke ! On 22 mar, 14:01, Poivre2 <[email protected]> wrote: > Dear all, > > I useMarkerClustereron my real estate map to display ads. I'm > currently building an AJAX interface so that users can filter ads > dynamically using a form. > > I show or hide ads (visibility) based on those filters. My problem is > thatMarkerClustererdoes not take into account the visibility status > of markers. How can I include that inMarkerClustererand update the > Cluster rendering when a filter changes? > > Here is my test page (in French ...) > :http://www.ruedelimmobilier.com/ng/annonces_immobilieres.php > > Thank you very much for your help! > Regards > Samuel -- 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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.
