Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ASA Go: Base Map Download #4301

Open
1 task
conbrad opened this issue Feb 27, 2025 · 0 comments
Open
1 task

ASA Go: Base Map Download #4301

conbrad opened this issue Feb 27, 2025 · 0 comments
Labels
4Refinement this ticket is ready for refinement with the team Task Technical task that cannot be written as a user story

Comments

@conbrad
Copy link
Collaborator

conbrad commented Feb 27, 2025

Describe the task
Capacitor does not support reading file assets from app assets built into apps. Instead we can follow the approach InvasivesBC used for their offline maps, and, when online:

  1. Query the pmtiles header for extent and size of basemap
  2. Request all z, x, y tiles and store them in a sqlite database: https://github.com/bcgov/invasivesbc/blob/dev/app/src/utils/tile-cache/sqlite-cache.ts
  3. Provide feedback to the user of the download status

Acceptance Criteria

  • A user can download the pmtiles basemap when connected to the internet

Additional context

@conbrad conbrad added 4Refinement this ticket is ready for refinement with the team Task Technical task that cannot be written as a user story labels Feb 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4Refinement this ticket is ready for refinement with the team Task Technical task that cannot be written as a user story
Projects
None yet
Development

No branches or pull requests

1 participant