-
Notifications
You must be signed in to change notification settings - Fork 640
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
markercluster events #648
Comments
I got around this for now by doing this by get the layer directly. Note this code is in a directive, so layersCtrl.getLayers()
.then(function(layers) {
var layer = layers.overlays[layerId];
layer.on('clusterclick', function(e) {
var map = e.target._map,
children = e.layer.getAllChildMarkers(),
latlng = e.latlng;
if (map._zoom >= map._layersMaxZoom) {
showPopup(map, children, latlng);
}
});
}); |
This issue was moved to angular-ui/ui-leaflet#146 |
I'm going to rework&redesign angular-leaflet-directive to be compatible with Leaflet v1.0. It will mantain almost all its functionality, and will be compatible with the current features of the directive, but I must start from a fresh point, so I'm going to close this issue. If you think it must be worked with the new version, please reopen it. |
markercluster adds "cluster" + eventName events to markers; afaik, possible events are hardcoded in leafletEvents.js.
Would it be possible to remedy this to some extent?
The text was updated successfully, but these errors were encountered: