-
-
Notifications
You must be signed in to change notification settings - Fork 791
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 5486 #5518
Fix 5486 #5518
Conversation
…ng is non-zero. Only allow variable zoom at high pitch or when terrain is enabled.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #5518 +/- ##
==========================================
- Coverage 91.96% 91.95% -0.01%
==========================================
Files 282 282
Lines 39050 39050
Branches 6855 6853 -2
==========================================
- Hits 35911 35909 -2
- Misses 3012 3013 +1
- Partials 127 128 +1 ☔ View full report in Codecov by Sentry. |
Thanks! Do you think a render test can help here? |
@HarelM No. The bug was in the way covering tiles were calculated when the top padding was non-zero. The new unit test covers that. The rendering problem shown in the original bug report was because the source did not contain the lower-zoom tiles that were being requested. Current MapLibre behavior is not to request higher zoom tiles when the requested zoom is not available. This seems like a reasonable default to prevent an explosion of tile requests, but it may be worth looking into a way to change that behavior (outside the scope of this PR). |
In a render test we can have the numbers source and make sure all the tiles are from the same zoom, which is what this fix is about as far as I understand. |
Correct. I think the existing unit test is more appropriate than a render test. |
Fixes #5486.
Do not allow variable zoom tiles just because the top padding is non-zero. Only allow variable zoom at high pitch or when terrain is enabled.
CHANGELOG.md
under the## main
section.