Hi, iam trying to get addlistener on click for markerclusterer. I need
to get markers inside this cluster and call ajax. Any tips would be
much apricciated.

I tried this but it doesnt work :
          for (var i = 0; i < data.count; ++i) {
            var latlng = new GLatLng(data.photos[i].latitude,
data.photos[i].longitude);
            marker = createMarker(data.photos[i].latitude,
data.photos[i].longitude, icon, data.photos[i].picture,
data.photos[i].address, map, data.photos[i].name);
            markers.push(marker);
          }
          var markerCluster = new MarkerClusterer(map, markers);

          GEvent.addListener(markerCluster, "clusterclick",
          function() {
              alert("are you here ?");
          });

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps API" 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-api?hl=en.

Reply via email to