Thats not really possible, no 'marker' was clicked but a cluster was
clicked.  I suppose you could modify the MarkerClusterer code to also pass
in the click location and then find the closest marker to that location but
it probably won't work too well.

Can I ask what use case you are trying to solve by doing this?

-- Luke


On Fri, Dec 9, 2011 at 2:50 AM, Gabriel Bretschner <i...@kanedo.net> 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 post to this group, send email to
> google-maps-js-api-v3@googlegroups.com.
> To unsubscribe from this group, send email to
> google-maps-js-api-v3+unsubscr...@googlegroups.com.
> 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 post to this group, send email to google-maps-js-api-v3@googlegroups.com.
To unsubscribe from this group, send email to 
google-maps-js-api-v3+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.

Reply via email to