Will the information window display
> one window with the data I have binded to individual markers even though i
> have binded the same data to many? Hope this makes sense.

It depends on your marker creation routine. Say your markers have an
attribute "html" that can be accessed through markerArray[i].html and
you want to display that. You can use cluster.getMarkers() to get an
array of the markers in that particular cluster, then loop through
them looking for what you want:

google.maps.event.addListener(markerCluster, 'clusterclick',
function(cluster) {
        cstring=""
        clusterArray=cluster.getMarkers()
        for (var i = 0; i < clusterArray.length; i++){
        cstring+=clusterArray[i].html
                }
        infoWindow.setPosition(cluster.getCenter());
        infoWindow.setContent(cstring);
        infoWindow.open(map);
        });

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