publiclab / Leaflet.DistortableImage

A Leaflet extension to distort or "rubber sheet" images
https://publiclab.github.io/Leaflet.DistortableImage/examples/
BSD 2-Clause "Simplified" License
270 stars 284 forks source link

Removing loading image causes error #1396

Open Falke-Design opened 3 months ago

Falke-Design commented 3 months ago

Describe the bug: Removing the image before the loading of the image has been finished causes an error in the load listener. grafik

Reproduce the behavior:

img = L.distortableImageOverlay('example.jpg').addTo(map);
img.removeFrom(map)

Browser, version, and operating system:

welcome[bot] commented 3 months ago

Thanks for opening your first issue here! This space is protected by our Code of Conduct - and we're here to help. Please follow the issue template to help us help you 👍🎉😄 If you have screenshots or a gif to share demonstrating the issue, that's really helpful! 📸 You can make a gif too! Do join our Gitter channel for some brainstorming discussions.