SpeedThreshold

public struct SpeedThreshold

Defines a zoom value triggered when the vehicle reaches a specific speed.

  • Speed that activates the threshold. Defaults to 0.0.

    Declaration

    Swift

    public var speedInMetersPerSecond: Double
  • Zoom value applied once the threshold is reached. Interpreted according to the configured TrackingCameraBehavior.zoomMeasureKind. Defaults to 19.0.

    Declaration

    Swift

    public var zoom: Double
  • When true, the zoom is linearly interpolated between this threshold’s zoom and the next higher threshold’s zoom as speed increases through this range. Has no effect if used on the last threshold. Defaults to false.

    Declaration

    Swift

    public var interpolate: Bool
  • Creates a new instance.

    Declaration

    Swift

    public init(speedInMetersPerSecond: Double = 0.0, zoom: Double = 19.0, interpolate: Bool = false)