I'm using the last version of Leaflet and MarkerCluster.
After I draw a polygon on the map, I'd like to select all markers within it. I know the bounds of the polygon. Also, I know the coordinates of the markers.
map.on(L.Draw.Event.CREATED, function (e) {
var type = e.layerType,
layer = e.layer;
for (var i = 0; i < markers.length; i++) {
}
editableLayers.addLayer(layer);
});
Thanks!