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
I'm seeing that in both MapKnitter.org and the demo here (https://publiclab.github.io/Leaflet.DistortableImage/examples/), there is no longer a "raise to top" or "send to bottom" tool, and some folks have been asking about it.
I see in the docs that it's an "add-on" tool: L.StackAction with q, a hotkeys. But how do we turn on "add-on" tools?
L.StackAction
Looks like we should be able to use L.DistortableImage.Edit's addTool() method... looking...
L.DistortableImage.Edit
addTool()
And maybe include it on this line: https://github.com/publiclab/mapknitter/blob/77ccb1535c85c227410e2594e596eef26395043b/app/assets/javascripts/mapknitter/Map.js#L95
following the format:
img = L.distortableImageOverlay('example.jpg', { actions: [L.OpacityAction, L.DeleteAction, L.RevertAction], }).addTo(map);
Aha! Yes, this works!
map._layers[54].editing.addTool(L.StackAction)
OK!
The text was updated successfully, but these errors were encountered:
Add more Leaflet.DistortableImage tools
c071de2
following publiclab/Leaflet.DistortableImage#649 😄
Done here! Let's check on stable.mapknitter.org too!
publiclab/mapknitter@c071de2
Sorry, something went wrong.
No branches or pull requests
I'm seeing that in both MapKnitter.org and the demo here (https://publiclab.github.io/Leaflet.DistortableImage/examples/), there is no longer a "raise to top" or "send to bottom" tool, and some folks have been asking about it.
I see in the docs that it's an "add-on" tool:
L.StackAction
with q, a hotkeys. But how do we turn on "add-on" tools?Looks like we should be able to use
L.DistortableImage.Edit
'saddTool()
method... looking...And maybe include it on this line:
https://github.com/publiclab/mapknitter/blob/77ccb1535c85c227410e2594e596eef26395043b/app/assets/javascripts/mapknitter/Map.js#L95
following the format:
Aha! Yes, this works!
OK!
The text was updated successfully, but these errors were encountered: