publiclab / Leaflet.DistortableImage

A Leaflet extension to distort or "rubber sheet" images
https://publiclab.github.io/Leaflet.DistortableImage/examples/
BSD 2-Clause "Simplified" License
273 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 1 year ago

Surajbisht15 commented 1 year 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 1 year 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 1 year ago

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

jywarren commented 1 year 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 1 year ago

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