You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've looked at the documentation to make sure the behavior is documented and expected.
I'm sure this is a Leaflet code issue, not an issue with my own code nor with the framework I'm using (plain JS, leaflet).
I've searched through the issues to make sure it's not yet reported.
Steps to reproduce
Steps to reproduce the behavior:
Initialize the LayerGroup, layerControl, add them to the map.
Initialize the Marker with draggable: true.
Add the marker to the LayerGroup, and add the LayerGroup to the map.
Disable the dragging for each layer of the Layer Group. The marker becomes un-draggable on the map.
Hide the marker, by unchecking the overlay in the the layerControl box. No marker is shown on the map.
Show the marker, by checking the overlay in the the layerControl box. The marker becomes draggable on the map.
Expected behavior
After the marker is shown again on the map by checking the overlay in the layerControl box, expecting the marker to stay un-draggable.
Current behavior
After the marker is shown again on the map by checking the overlay in the layerControl box, the marker reverts to the original state of being draggable.
Environment
Leaflet version: 1.7.1
Browser (with version): Chrome Version 87.0.4280.88 (Official Build) (64-bit)
OS/Platform (with version): Windows 10 Home 20H2 19042.685
Steps to reproduce
Steps to reproduce the behavior:
Expected behavior
After the marker is shown again on the map by checking the overlay in the layerControl box, expecting the marker to stay un-draggable.
Current behavior
After the marker is shown again on the map by checking the overlay in the layerControl box, the marker reverts to the original state of being draggable.
Environment
Additional context
Minimal example reproducing the issue
http://jsfiddle.net/71keLoaf/1/
The text was updated successfully, but these errors were encountered: