I have integrated Markerclusterer with Google Maps in a similar way to the example provided. Here is my code snippet:
var map = new google.maps.Map(document.getElementById("map"), options);
var markers = [];
for (var i = 0; i < 100; i++) {
var latLng = new google.maps.LatLng(data.photos[i].latitude,
data.photos[i].longitude);
var marker = new google.maps.Marker({'position': latLng});
markers.push(marker);
}
var markerCluster = new MarkerClusterer(map, markers);
Although this setup works perfectly, I am facing an issue with clustering custom markers that contain individual info. When using custom markers, Markerclusterer fails to cluster them properly. Does anyone have a solution for implementing custom markers with Markerclusterer without affecting the clustering functionality?