MTPitchLimitHelper

public class MTPitchLimitHelper

Sets combination of minimum and maximum pitch.

  • The maximum pitch of the map (0-85).

    If not specified, the SDK will look for it in the map options. If not specified there, it defaults to 60.

    Declaration

    Swift

    public var maxPitch: Double?
  • The minimum pitch of the map (0-85).

    If not specified, the SDK will look for it in the map options. If not specified there, it defaults to 0.

    Declaration

    Swift

    public var minPitch: Double?
  • Returns pitch limit object with no specified limits.

    Declaration

    Swift

    public static func getPitchLimits() -> MTPitchLimitHelper
  • Returns pitch limit object constructed from given options object.

    Declaration

    Swift

    public static func getPitchLimitsWith(_ options: MTMapOptions) -> MTPitchLimitHelper

    Parameters

    options

    MTMapOptions object with initial limit options.

  • Returns pitch limit object with the given max pitch and min pitch.

    Declaration

    Swift

    public static func limitPitch(
        maxPitch: Double,
        minPitch: Double
    ) -> MTPitchLimitHelper

    Parameters

    maxPitch

    The maximum pitch of the map (0-85).

    minPitch

    The minimum pitch of the map (0-85).

  • Returns pitch limit object with the given max pitch.

    Declaration

    Swift

    public static func limitMaxPitch(
        _ maxPitch: Double
    ) -> MTPitchLimitHelper

    Parameters

    maxPitch

    The maximum pitch of the map (0-85).

  • Returns pitch limit object with the given min pitch.

    Declaration

    Swift

    public static func limitMinPitch(
        _ minPitch: Double
    ) -> MTPitchLimitHelper

    Parameters

    minPitch

    The minimum pitch of the map (0-85).

  • Returns a Boolean indicating whether the pitch limit object is equal to the receiver.

    Declaration

    Swift

    public func isEqualToPitchLimitHelper(_ pitchLimit: MTPitchLimitHelper) -> Bool

    Parameters

    pitchLimit

    MTPitchLimitHelper object to compare with.