Hello! I know this post is a bit old now but I'm looking for a way to do this too - to obtain all the points in one cluster - and I was wondering if you did find a way to do it. Thanks!
On Thursday, December 8, 2011 at 4:50:23 PM UTC+1, Gabriel Bretschner wrote: > > Hi, > I know, this is not the right mailing list to ask the question, but I > don't know where to ask. > I use the MarkerClusterer Library (http://gmaps-utility- > library.googlecode.com/svn/trunk/markerclusterer/1.0/docs/ > reference.html) and I try to get all markers from one cluster. > Let me illustrate this with a little example: > >var clusterClick = function (event){ > > console.log(event); > > console.log(event.markerClusterer_.getMarkers()); > >} > >var markerCluster = new MarkerClusterer(map, markers, > markerClusterOptions); > >google.maps.event.addListener(markerCluster, 'clusterclick',clusterClick); > With this simple code I get *all* markers in the cluster. But what I > need to know is, which markers are in the cluster which was clicked at > this moment. > > Does anybody know how to do this? Thank you! > -- 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 https://groups.google.com/group/google-maps-js-api-v3. For more options, visit https://groups.google.com/d/optout.