We use LocationDisplayAutoPanMode.Navigation while we show navigation directions to a destination and it works fine.
Once reached there, the driver has the option to remain centered on the truck or free scroll the map.
The problem with AutoPan.Navigation while not navigating is that the maps spins North if the truck is stationary for a long time. CompassNavigation mode is also not very smooth with the device we use.
The goal is to keep the truck icon (current location) lower than center on the screen and provide a glitch free map navigation like rotation and movement.
I see 2 options:
1. implement a custom autopan, similar to recenter mode, that based on location changes viewport and keeps a normalized heading (don't use heading if speed less than X)
2. implement a custom datasource that wraps SystemLocationDataSource and ignores heading resets (similar to 1)
Did anyone else face this? Any suggestions?