> I have some marker clustered ! but In my script I compare marker for > put her in categorie and with my modification the function categorie > for hide or make appear catagorie doesn"t work .
Okay, here we go beyond "how to use simple clustering Options", but it can be done. The clusterer can only do what you tell it. If you have it managing a set of markers, and you would like to change that set of markers, you have to write code to tell it. You might do something like remove all the markers currently displayed. Then pass the clusterer the new set of markers you would like to see instead. There are a number of things you need to think about here. You'd probably want your clusterer object in global scope, so that you can modify it later. You will need an array of "selected" markers to pass to it, which might be different from the existing array of all markers (that you won't want to modify) You'll need to change what your checkbox code does, so that it recalculates the array of "selected" markers, clears the existing clusters, and passes the new array to the clusterer. As the cluster automatically hides and shows markers for itself, you can probably do away with most of your hide/show code and allow the cluster to do the work, based on what markers you pass to it. -- 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.
