-
-
Notifications
You must be signed in to change notification settings - Fork 728
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
kamil/fix-ease-to-padding-transition-on-globe-projection #5134
kamil/fix-ease-to-padding-transition-on-globe-projection #5134
Conversation
@HarelM Hey, soo i've tried to debug this issue that i've created today and what I noticed was that padding wasn't really interpolated on every |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #5134 +/- ##
=======================================
Coverage 91.82% 91.82%
=======================================
Files 278 278
Lines 38346 38347 +1
Branches 6703 6706 +3
=======================================
+ Hits 35210 35213 +3
+ Misses 3002 3001 -1
+ Partials 134 133 -1 ☔ View full report in Codecov by Sentry. |
I remember there was an issue with adding padding, but I'm not sure what it was... |
I think it might be related to the following issue: Padding is applied differently. |
@NathanMOlson @kubapelc can you guys take a look at this? |
Does this also work if the easeTo animation also changes the map center? Code changes look good to me! |
Kapture.2024-11-28.at.16.17.47.webm@HarelM I don't see a difference between pre.3 and my branch regarding this issue that you've linked. |
@kubapelc if I understood you correctly, yes. On every button click im swapping padding and center which seems to work correctly.
Kapture.2024-11-28.at.16.35.13.webm |
@HarelM Hey, I think it's ready to review, not sure why codecov/project is shouting at me tho 🤔 nvm - it went through |
My main concern about this code which I think I recently had a look at is the following comment:
I'm not sure what to make of it and which scenarios we didn't tests as part of this PR... |
@HarelM ah I see why that was needed on mercator, unfortunately I don't have enough knowledge about codebase yet to say something valuable why this works on globe out of the box, I mainly relied on tests, but I could add some more tests if you can figure out some scenarios where it would break 👌 |
If I'm looking at the mercator code I see some references to offset that can be used (although I'm not sure I understand what's the difference between offset and padding). |
Kapture.2024-11-29.at.16.54.33.webmMercator and globe with padding and offset are behaving the same. LngLat values that you see printed out in are unique map.getCenter values (unique to 8th decimal place) - so it doesn't behave weirdly on every consecutive call. I've also tested pitch, roll, elevation, offset, padding and bearing together, and seems like these combinations yield same |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's hope this won't create other issues, thanks!!
Launch Checklist
Fixes #5133
CHANGELOG.md
under the## main
section.