ManeuverRuleOptions
public struct ManeuverRuleOptions
Defines a set of configurations specific to a TrackingCameraBehavior.ManeuverRule.
-
The zoom range for this rule. Defines the minimum and maximum zoom levels.
Declaration
Swift
public var zoomRange: TrackingCameraBehavior.ManeuverZoomRange -
Distance in meters for early activation. If the current position enters this threshold of the upcoming maneuver while still within
TrackingCameraBehavior.ManeuverRuleOptions.postManeuverActivationThresholdInMetersof the previous maneuver, the camera behaves as though it were already in the upcoming maneuver’s pre-activation zone. Must be non-negative. Defaults to 0.0.Declaration
Swift
public var earlyPreManeuverActivationThresholdInMeters: Double -
Distance in meters before the next maneuver point within which this rule becomes active. Must be non-negative. Defaults to 0.0.
Declaration
Swift
public var preManeuverActivationThresholdInMeters: Double -
Distance in meters after the previous maneuver point within which this rule remains active. Must be non-negative. Defaults to 0.0.
Declaration
Swift
public var postManeuverActivationThresholdInMeters: Double -
init(zoomRange:earlyPreManeuverActivationThresholdInMeters: preManeuverActivationThresholdInMeters: postManeuverActivationThresholdInMeters: ) Creates a new instance.
Note: This is a beta release of this feature, so there could be a few bugs and unexpected behaviors. Related APIs may change for new releases without a deprecation process.
Declaration
Swift
public init(zoomRange: TrackingCameraBehavior.ManeuverZoomRange = TrackingCameraBehavior.ManeuverZoomRange(), earlyPreManeuverActivationThresholdInMeters: Double = 0.0, preManeuverActivationThresholdInMeters: Double = 0.0, postManeuverActivationThresholdInMeters: Double = 0.0)