publiclab / Leaflet.DistortableImage

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

Does this library has typescript support? I am using leaflet in my Angular(16.x.x) project. #1392

Open Surajbisht15 opened 9 months ago

Surajbisht15 commented 9 months ago

I have been using leaflet in angular. And now I need leaflet.DistortableImage support in by application.

I am not able to use this library as suggested (L.distortableImageOverlay()). It says L. has no exported member with this name.

Do I have to add any other library or another way to use it?

welcome[bot] commented 9 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.

quadraturin commented 9 months ago

I would also love to see TS type definitions for this library!

jywarren commented 9 months ago

Hi all, unfortunately I don't have the capacity to continue maintaining... but would be happy to merge something if a few people can review it. I appreciate your understanding!

Surajbisht15 commented 7 months ago

For now I have solved this issue by using L as any: (L as any).distortableImageOverlay; This is how it removes runtime error