Offline map Ionic leaflet-offline

I’m trying to enable my Leaflet map to be stored offline.
I Found two libraries: leaflet-offline and leaflet.offline

I choose to use the first one because it gives compatibility with different storage so that I can easily use the native provided by ionic 3

Now it comes my problem, how can I use this library which is in javascript with my leafletmap which is typescript? How can I import it?

If is not possibile, the only way to achieve that is to convert the javascript repo that I found in typescript right?

Anyone already done something like that and can help me out?

Sorry for the dumb question.

So I actually read around online, it seems that the only option is actually to convert the library into typescript in order to not have any problem.
I’ll try to do that.

:slight_smile:

Did you figure this out?