Leaflet / Leaflet.VectorGrid

Display gridded vector data (sliced GeoJSON or protobuf vector tiles) in Leaflet 1.0.0
598 stars 194 forks source link

offline pbf example #144

Open petrot opened 6 years ago

petrot commented 6 years ago

Hi Folks,

is there any working example how to use pbf files offline? I have an ionic/cordova app, I would like to use offline vector maps (load openmaptiles pbf files from the device storage).

Thanks.

nickpeihl commented 6 years ago

Hi @petrot.

You might be interested in this early proof of concept I worked on that uses Leaflet.VectorGrid. Although it's not exactly what you are looking for, you may find it useful.

https://github.com/nickpeihl/offline-maps-playground

petrot commented 6 years ago

@nickpeihl Thanks a lot!

DanielShinken commented 6 years ago

@petrot Hi there! did you find a way to do this? I also got a pbf tile server, I would like to save those tiles on indexeddb then use them offline, did you find how to do this? thanks in advance

petrot commented 6 years ago

@DanielShinken No, i didn't...