We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
How can I disable dragging by using the map variable? I dont want to disable dragging one by one
The text was updated successfully, but these errors were encountered:
You can't. Why is it a problem? Group your layers in a LayerGroup and then it will be easier.
LayerGroup
Sorry, something went wrong.
like that
var group = new L.LayerGroup().addTo(map); for (var i = 0; i < things.length; i++) { var poly = new L.Polygon([...], { draggable: true }).addTo(group); } ... group.eachLayer(function(layer) { layer.dragging.disable(); });
No branches or pull requests
How can I disable dragging by using the map variable? I dont want to disable dragging one by one
The text was updated successfully, but these errors were encountered: