-
-
Notifications
You must be signed in to change notification settings - Fork 768
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 uncautht OverscaledTileID error appearing with terrain enabled #1871
Fix uncautht OverscaledTileID error appearing with terrain enabled #1871
Conversation
Can you elaborate how removing this variable solves the issue? |
Bundle size report: Size Change: -7 B
ℹ️ View Details
|
@HarelM I noticed |
Ahh, then I focused on the wrong thing. Can you split the two changes in to separate PRs by any chance? |
Thanks, @zbigniewmatysek-tomtom, because of the fix and archeologist work 😄 and @HarelM, because of the review & merge |
Fixes #1650.
Context
Negative zoom levels were introduced by mapbox to handle displaying tiny maps. By negative zoom level they can scale down tiles. This PR is not questioning this design choice, just fixes issue with querying elevation caused by not handling negative zoom.
Problem
OverscaledTileID
ingetElevation()
was constructed with negative zoomLevel (not allowed by tile spec) and thus threw uncaught error.References:
Launch Checklist
CHANGELOG.md
under the## main
section.