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

Do we need to invoke getTile for each tileCoords to pre-generate tiles? #184

Open
bpstrngr opened this issue Jun 27, 2024 · 0 comments
Open

Comments

@bpstrngr
Copy link

bpstrngr commented Jun 27, 2024

This part in the readme doesn't seem obvious to me:
To pre-generate tiles, we need to set maxZoom and indexMaxZoom to the same value, indexMaxPoints to 0, "and then accessing the resulting tile coordinates from the tileCoords property of tileIndex."
The toleCoords property is just a list of tile coordinates, so does this mean to say we need to invoke getTile with each, or the tileCoords array has some "get" proxy behavior to complete the tile generation?
My assumption was that after I pre-generate tileIndex with the proper configuration, I can just continue to use .getTile and they'll be just there. Apropos, it's also not clear if setting "maxZoom" and "indexMaxZoom" to eg. 15, means that i won't be able to getTile above zoom level of 15? It seems like I can, so the "max" only refers to the limit for pre-generation.
Thanks for clarifying!

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