> If these variables go out of scope, is there any way I can use the
> variables that are outside the function?

Sure.  You can have them persist in global scope, or, you can have
them captured by the magic of 'function closure' at the time you set
up the listener.

Your approach here is bit flawed, there's little poiint in trying to
attach per-marker infowindow contents to a cluster that you don't know
how many or which markers are in it, and could change every time the
view changes.

But you seem to have started a parallel thread
http://groups.google.com/group/google-maps-js-api-v3/browse_thread/thread/0f8cb86f2c45dd1e#
Listen for a click on a cluster, any cluster, and _then_ determine
what you want to display.

-- 
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.

Reply via email to