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

Change max zoom from 15 to 16 #82

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Change max zoom from 15 to 16 #82

wants to merge 2 commits into from

Conversation

peitili
Copy link
Contributor

@peitili peitili commented Jun 1, 2021

According to tilequeue tilezen/tilequeue#389
the max zoom is 16 rather than 15, so change that.

@@ -1,2 +1,2 @@
MAX_TILE_ZOOM = 15 # 15 tilezen's max supported zoom
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We play some tricks here with max zoom and tile sizes. For 256 tiles I recall the max zoom is 16, but for 512 tiles it's effectively 15, but when we build 256 tiles and 512 tiles we send the precut 256 zoom 16 tile for the 512 zoom 15 request. It's unclear to me what this MAX_TILE_ZOOM is referring to and what it means in the context of a 512 px tile size only build. Do you know? Otherwise I'll do some reading...

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We play some tricks here with max zoom and tile sizes. For 256 tiles I recall the max zoom is 16, but for 512 tiles it's effectively 15, but when we build 256 tiles and 512 tiles we send the precut 256 zoom 16 tile for the 512 zoom 15 request. It's unclear to me what this MAX_TILE_ZOOM is referring to and what it means in the context of a 512 px tile size only build. Do you know? Otherwise I'll do some reading...

The variable defined here is for bbox build, it iterate all the zooms up to MAX_TILE_ZOOM to find tiles that touches the bounding box.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool, LGTM

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

Successfully merging this pull request may close these issues.

4 participants