4

I understand that this is a basic question; however, I've spent hours googling and have yet to find an answer that works.

I have a javascript webapp that uses Leaflet to display a map. I can get it to work when the tile source URL is some online repository like mapbox, but I want my application to work offline. How/where can I download tiles and save them in a folder structure that I can then set the tile source URL to point to?

Thanks

user3059217
  • 521
  • 1
  • 6
  • 9
  • Possible duplicate of [Is there an offline Map layer available for Leaflet?](https://stackoverflow.com/questions/34408079/is-there-an-offline-map-layer-available-for-leaflet) – ghybs Mar 22 '18 at 06:41

1 Answers1

0

You can generate tiles by yourself using same engine as OSM's : Mapnik and OSM database.

filimonic
  • 3,988
  • 2
  • 19
  • 26
  • 1
    If you follow https://switch2osm.org/manually-building-a-tile-server-16-04-2-lts/ you'll have a tile server that you can copy tiles from that will look the same as OSM's standard layer. That isn't the most efficient format for offline tiles though. – SomeoneElse Mar 22 '18 at 16:05