-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Fix incorrect z coordinate on overzoomed tiles #2868
Labels
Comments
See #1912 for more context |
This was referenced Nov 30, 2016
Merged
5 tasks
5 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
mapbox-gl-js version: 0.21.0
When calling
querySourceFeatures
past the max zoom of the source layer, the tiles returned are not in the viewport. They have thex
andy
values from the max zoom of the source layer but thez
value from the actual zoom level. My recreation relies on some private layers but you can also see the error in the tile boundary calculation (11/328/794 is correct, 11/164/397 has the correct x/y for zoom 10):I believe the
reparseOverscaled
ternary operator is reversed in theTilePyramid
; when swappingz
andactualZ
locally the problem was resolved. I can add a PR but not sure of a good test caseThe text was updated successfully, but these errors were encountered: