Add offline maps #17

Closed
opened 5 years ago by skylarmt · 4 comments
Owner

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

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
skylarmt self-assigned this 5 years ago
skylarmt added the
enhancement
label 5 years ago
Poster
Owner

Alternatively, find some way to use OpenAndroMaps or mbtiles or something.

Alternatively, find some way to use OpenAndroMaps or mbtiles or something.
skylarmt modified the milestone from First release to (deleted) 5 years ago
Poster
Owner

Will probably write some code that pulls pbf tiles from the map server at zoom level 14 and saves them somewhere on the device.

Will probably write some code that pulls pbf tiles from the map server at zoom level 14 and saves them somewhere on the device.
Poster
Owner

This should be mitigated with the new caching behavior, which will save map tiles for offline use once they've been loaded once.

This should be mitigated with the new caching behavior, which will save map tiles for offline use once they've been loaded once.
Poster
Owner

Closing because the tile cache seems sufficient for now.

Closing because the tile cache seems sufficient for now.
skylarmt closed this issue 4 years ago
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: Netsyms/PackageHelper#17
Loading…
There is no content yet.