-
Notifications
You must be signed in to change notification settings - Fork 315
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
Puck Location fix #2387
Puck Location fix #2387
Conversation
…vents, including map view resizing
if tracksUserCourse { | ||
centerUserCourseView() |
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.
This is the smoothest implementation I found so far, to make user puck slide in place gracefully...
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.
#2211 removed the line that set the view’s center
. Can you check that it doesn’t introduce any regressions related to that PR? Thanks!
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.
Issue description and reproduction steps for #2211 are a bit cryptic for me, but as I understood, the issue was about incorrect puck positioning during navigation, together with zooming/panning/rotating map view. I checked that user puck is located right on the route regardless of camera position and switching to/from course tracking mode. Is that what #2211 was about?
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.
Unfortunately, I’m not super clear on it myself; I’m not entirely convinced that #2211 was the right fix for #2145, and it definitely wasn’t a fix for mapbox/mapbox-gl-native#15232 or mapbox/mapbox-gl-native#15233.
The main things to watch out for are #2145 (comment) and #2145 (comment).
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.
I could not reproduce symptoms described in linked comments...
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.
If I understand correctly, the Nav SDK is not using the Maps SDK user location annotation, which means it will not account for contentInset
changes. I think this pr is trying to update the user location annotation considering the "insets".
Team - if we are done - can we close this now with a merge? It is blocking ... |
This PR also possibly fixes #2364. |
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.
After looking at the code in the Maps SDK that updates the user location annotation position I think this is the right approach and is not causing a regression since this does not contrapone #2211, and is reusing code that was already there to position user location annotation.
if tracksUserCourse { | ||
centerUserCourseView() |
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.
If I understand correctly, the Nav SDK is not using the Maps SDK user location annotation, which means it will not account for contentInset
changes. I think this pr is trying to update the user location annotation considering the "insets".
Resolves puck location issue, caused by the bottom banner update.
Fixed updating Puck location on various events, including
NavigationMapView
resizing.Edit: Removed internal link.