Users should be able to choose rectangular regions on the map, the bounds of which will be sent to a server (along with the chosen map theme). The server will return a download ID for that map area, then fetch the tiles for that area (up to zoom level 16 or 17) and bundle them (probably with a zip or base64 json file). The app will periodically query the server for the bundle build status. When the bundle is finished, the app will download it and unpack it into the filesystem. Leaflet will be instructed to fetch tiles from the downloaded folder.
Users should be able to choose rectangular regions on the map, the bounds of which will be sent to a server (along with the chosen map theme). The server will return a download ID for that map area, then fetch the tiles for that area (up to zoom level 16 or 17) and bundle them (probably with a zip or base64 json file). The app will periodically query the server for the bundle build status. When the bundle is finished, the app will download it and unpack it into the filesystem. Leaflet will be instructed to fetch tiles from the downloaded folder.
https://blog.bam.tech/developper-news/how-to-build-an-offline-map-system-for-an-hybrid-app
skylarmt
added this to the First release milestone 5 years ago
Users should be able to choose rectangular regions on the map, the bounds of which will be sent to a server (along with the chosen map theme). The server will return a download ID for that map area, then fetch the tiles for that area (up to zoom level 16 or 17) and bundle them (probably with a zip or base64 json file). The app will periodically query the server for the bundle build status. When the bundle is finished, the app will download it and unpack it into the filesystem. Leaflet will be instructed to fetch tiles from the downloaded folder.
https://blog.bam.tech/developper-news/how-to-build-an-offline-map-system-for-an-hybrid-app
Alternatively, find some way to use OpenAndroMaps or mbtiles or something.
Will probably write some code that pulls pbf tiles from the map server at zoom level 14 and saves them somewhere on the device.
This should be mitigated with the new caching behavior, which will save map tiles for offline use once they've been loaded once.
Closing because the tile cache seems sufficient for now.