MapCameraOptions

public struct MapCameraOptions : Equatable

Used to configure Camera-specific capabilities of the map

  • The minimum zoom level at which the map can be shown. Depending on the map view’s aspect ratio, the map view may be prevented from reaching the minimum zoom level, in order to keep the map from repeating within the current viewport. If the value of this property is greater than that of the maximumZoomLevel property, the behavior is undefined.

    The default minimumZoomLevel is 0.

    Declaration

    Swift

    public var minimumZoomLevel: CGFloat
  • The maximum zoom level the map can be shown at. If the value of this property is smaller than that of the minimumZoomLevel property, the behavior is undefined. The default maximumZoomLevel is 22. The upper bound for this property is 25.5.

    Declaration

    Swift

    public var maximumZoomLevel: CGFloat
  • The minimum pitch of the map’s camera toward the horizon measured in degrees.

    If the value of this property is greater than that of the maximumPitch property, the behavior is undefined. The pitch may not be less than 0 regardless of this property.

    The default value of this property is 0 degrees, allowing the map to appear two-dimensional.

    Declaration

    Swift

    public var minimumPitch: CGFloat
  • The maximum pitch of the map’s camera toward the horizon measured in degrees.

    If the value of this property is smaller than that of the minimumPitch property, the behavior is undefined. The pitch may not exceed 85 degrees regardless of this property.

    The default value of this property is 85 degrees.

    Declaration

    Swift

    public var maximumPitch: CGFloat
  • A time interval that represents the amount of time the camera view is animated for.

    Declaration

    Swift

    public var animationDuration: TimeInterval
  • A floating-point value that determines the rate of deceleration after the user lifts their finger.

    Declaration

    Swift

    public var decelerationRate: CGFloat
  • An optional set of coordinate bounds the camera view is allowed to stay within.

    Declaration

    Swift

    public var restrictedCoordinateBounds: CoordinateBounds?
  • Undocumented

    Declaration

    Swift

    public init()