To zoom into a cluster, you double click, else single click
It’s much better to add the event to the cluster itself.
{
action: 'addMarkers',
radius:40,
maxZoom:10,
markers: content.Destination,
clusters:{
// This style will be used for clusters with more than 0 markers
0: {
content: 'CLUSTER_COUNT',
width: 52,
height: 51
},
// This style will be used for clusters with more than 20 markers
20: {
content: 'CLUSTER_COUNT',
width: 52,
height: 51
},
// This style will be used for clusters with more than 50 markers
40: {
content: 'CLUSTER_COUNT',
width: 52,
height: 51
}
},
cluster:{
events: {
click:function(cluster, event, data) {
cluster.map.panTo(data.latLng);
cluster.map.setZoom(cluster.map.getZoom()+2);
}
}
}
}
