Most of the actions not working with crs: L.CRS.Simple
Hello, and thank you for this great plugin.
I'm having troubles getting it to work when the map is initialized with crs: L.CRS.Simple.
Drag, Scale, Rotate and Free transform actions are not working, while Distort, Lock, Opacity, Save and Delete do.
The code to reproduce this issue is very simple:
const map = L.map('map', {
crs: L.CRS.Simple
}).setView([0, 0], 10);
const img = L.distortableImageOverlay('some-image.jpg').addTo(map);
I have tried with the latest versions of Google Chrome, Mozilla Firefox and Safari, with the same results.
Thanks for opening your first issue here! Please follow the issue template to help us help you 👍🎉😄 If you have screenshots to share demonstrating the issue, that's really helpful! 📸 You can make a gif too!
Oh! Just noticed this issue. This is the same problem a have using CRS too.
Please check my comments in issue #1007. I hope that helps you.
Current I solved the problem using Math.abs(),but thata not the correct solution, and I'm not sure how to do a better patch
I'm seeing the same problem. Can we disable the check entirely if the map CRS is L.CRS.Simple?
I'm seeing the same problem. Can we disable the check entirely if the map CRS is L.CRS.Simple?
I supose that yes, but for me is more easy use Math.abs() and wait for @jywarren patch it
Hello, I'm addressing this here - going to merge this issue into it:
https://github.com/publiclab/Leaflet.DistortableImage/issues/1007#issuecomment-1261637950
Please follow there and if you can let me know whether the fix works once it's merged, that would be super helpful. Thanks!