BearingSmoothing

class BearingSmoothing

Options that impact bearing generation to not be fixed to location's bearing but also taking into the direction to the upcoming maneuver.

Constructors

Link copied to clipboard
fun BearingSmoothing()

Properties

Link copied to clipboard
var enabled: Boolean = true

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.

Link copied to clipboard
var maxBearingAngleDiff: Double = 45.0

When enabled, this controls how much the following frame's bearing can deviate from the Location bearing, in degrees.