With the default mapbox navigation following mode, the puck will move to many positions on the screen and in many direction.
How can I align it to center horizontal in bottom of the screen and the direction always point to top? Then only the map move, zoom and rotate.
I tried to override followingPitchPropertyOverride
and followingZoomPropertyOverride
. The puck will fixed in bottom but the direction is not always point to top (the direction is depend on the remain route).
https://docs.mapbox.com/android/navigation/guides/migrate-to-v2/#control-pucks-position-on-screen
You can follow the example in mapbox-navigation-android/examples/MapboxCameraAnimationsActivity.kt.
Need to use
com.mapbox.navigation.ui.maps.camera.NavigationCamera