I think I have almost accomplished my goal. In the following code, you set
the cstring variable to clusterArray[i].html. I don't think a marker object
has a string property. I couldn't find a property in the Marker library, so
how do I display the string associated with a particular marker?
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 view this discussion on the web visit
https://groups.google.com/d/msg/google-maps-js-api-v3/-/K6_qr2TCGVMJ.
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.