Bearing Smoothing
class BearingSmoothing
Content copied to clipboard
Options that impact bearing generation to not be fixed to location's bearing but also taking into the direction to the upcoming maneuver.
Functions
Properties
enabled
Link copied to clipboard
If enabled, the following frame's bearing won't exactly reflect the bearing returned by the Location from MapboxNavigationViewportDataSource.onLocationChanged but will also be affected by the direction to the upcoming framed geometry, to maximize the viewable area.
maxBearingAngleDiff
Link copied to clipboard
When enabled, this controls how much the following frame's bearing can deviate from the Location bearing, in degrees.