Open qpary opened 1 month ago
I followed the step here https://github.com/Leaflet/Leaflet.markercluster/blob/master/CONTRIBUTING.md to generate the js source file from master. It's not an official version of this plugin, but since I saw a commit related to this issue. I tried my luck and it seems like working as intended and the event is blocked.
Hi ! Same as Issue 1101 I wanted to cancel the expansion of cluster based on condition.
But it seems like i cannot stop the propagation of the events. I tried the solution "attach the event handler before any layer is added to L.MarkerClusterGroup" but the cluster keeps expanding. Maybe there is something I dont understand about leaflet layer and event.
How to reproduce
What behaviour I'm expecting and which behaviour I'm seeing
Im expecting the cluster to not open while clicking and another condition (in my example command key). I already logged, I'm entering the condition Im seing the cluster to expand and the map to zoom
Minimal example reproducing the issue
jsFiddle