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

Support importing multiple mbtiles files that update the same map #97

Open
achou11 opened this issue Jul 11, 2023 · 0 comments
Open

Support importing multiple mbtiles files that update the same map #97

achou11 opened this issue Jul 11, 2023 · 0 comments

Comments

@achou11
Copy link
Member

achou11 commented Jul 11, 2023

Running into a situation where there's a large mbtiles file that is hard to import on a mobile device due to its size. in theory, one could split the file into a few smaller files and import them separately to create the same resulting map. unfortunately, the current implementation does not support this because each time we extract the metadata and convert to a tilejson format, we create a new id, so each import would create a new map instead of updating the same one.

Proposed solution is to update the id generation in mbTilesToTileJSON to support a user adding a custom MAPEO_ID metadata field to the mbtiles metadata table, which could then be used to determine the id i.e.

id: metadata.MAPEO_ID || generateId(),
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant