-
Notifications
You must be signed in to change notification settings - Fork 313
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
Rotate map based on heading while walking #1942
Comments
Note that, due to a map SDK limitation, this fix may cause location tracking to lag: mapbox/mapbox-gl-native#3625 (comment). So we may want to throttle rotation changes to allow the center coordinate to catch up, so to speak. |
When we rely on CLHeading, we need to update |
#2215 fixes this issue.
I’m inclined to treat this issue as tail work and piggyback on any forthcoming solution for mapbox/mapbox-gl-native#3625. I don’t think it’ll end up being a huge problem in practice, because walking speeds are so low compared to driving speeds. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Stale. |
When the user is walking, they can more easily turn around than when driving. It’s more important for the map to indicate the direction the user is facing than the direction they’re walking, in the event that they turn around to orient themselves. Essentially,
MGLUserTrackingMode.trackWithHeading
is more appropriate thanMGLUserTrackingMode.trackWithCourse
for the walking use case.When the current step’s
transportType
iswalking
, the camera’s heading should be set toCLHeading.trueHeading
, notCLLocation.course
:mapbox-navigation-ios/MapboxNavigation/NavigationMapView.swift
Line 336 in 68745c9
/cc @mapbox/navigation-ios @lauri-rustanius
The text was updated successfully, but these errors were encountered: