I'm playing with the angular-leaflet-directive, and getting the marker names from a mouse click is straight forward. I just listen for the leafletDirectiveMarker.click event and then access args.markerName.
angular-leaflet-directive also works with markercluster, so I can cluster markers that have the same coordinates or ones that are close by. However, I would like to do the following, but it is not clear from the documentation on how to do it:
Make user double-click on cluster to zoom in. Currently doing a single click on a cluster will zoom in on the markers. see example.
How to listen for click event on cluster and get all marker names in the cluster. The documentation for clustermarker has a cluster event:
markers.on('clusterclick', function (a) { console.log('cluster ' + a.layer.getAllChildMarkers().length); });But I'm not sure what event I should be listening to using angular-leaflet-directive.