-
Notifications
You must be signed in to change notification settings - Fork 1.3k
User Position doesn't take real bearing value when tracking mode is NONE #9132
Comments
@13kz you can fine tune this behaviour with a couple of flags in trackingsettings. eg. you don't want to dismiss tracking at all when a gesture occuirs:
You can also do this more granular:
or
If this doesn't fit your use-case completely you can hook into these dismissal events with:
or
Let us know if you have any more questions or if you aren't able to use above to handle your use-case. |
Thanks @tobrun for your answer. I try to avoid dismissing bearing tracking on gesture when i'm in navigation mode and it's solve my problem.
|
@tobrun @13kz I stumbled on this same issue. However, even if |
@LukasPaczos Without setting TrackingSettings#setDismissBearingTrackingOnGesture(false), it's seems like the bearing equals to 0. And when you rotate the map the arrow is pointing the top of my device. |
Hey 👋 @13kz Thanks @LukasPaczos |
Yep @Guardiola31337 we are good. |
@13kz Thanks a lot 😉 |
Platform:Android
Mapbox SDK version:Release Android v5.1.0-beta.3
I'm working on a sample of navigation mode (like your CarDrivingActivity in last version).
The code below activate the tracking and set GPS bearing mode.
trackingSettings.setMyLocationTrackingMode(MyLocationTracking.TRACKING_FOLLOW);
trackingSettings.setMyBearingTrackingMode(MyBearingTracking.GPS);
I replace the default drawable icon in MyLocationViewSettings by a custom drawable. This let me know the orientation of user position.
Expected behavior
Without disabling all gesture, when the user pan the map, the tracking mode is NONE and the user position bearing should take real myLocation bearing value.
Actual behavior
The pan on the map disable the tracking and myLocationView ignore bearing value (I think it equals to 0).
The text was updated successfully, but these errors were encountered: