CameraBoundsOptions

public struct CameraBoundsOptions : Hashable

Holds options to be used for setting camera bounds.

  • The latitude and longitude bounds to which the camera center is constrained. Defaults to: Southwest: (-90, -180) and Northeast: (90, 180).

    Declaration

    Swift

    public var bounds: CoordinateBounds?
  • The maximum zoom level, in mapbox zoom levels 0-25.5. At low zoom levels, a small set of map tiles covers a large geographical area. At higher zoom levels, a larger number of tiles cover a smaller geographical area. Defaults to 22.

    Declaration

    Swift

    public var maxZoom: CGFloat?
  • The minimum zoom level, in mapbox zoom levels 0-25.5. Defaults to 0.

    Declaration

    Swift

    public var minZoom: CGFloat?
  • The maximum allowed pitch value in degrees. Defaults to 85.

    Declaration

    Swift

    public var maxPitch: CGFloat?
  • The minimum allowed pitch value degrees. Defaults to 0.

    Declaration

    Swift

    public var minPitch: CGFloat?
  • Undocumented

    Declaration

    Swift

    public init(bounds: CoordinateBounds? = nil,
                maxZoom: CGFloat? = nil,
                minZoom: CGFloat? = nil,
                maxPitch: CGFloat? = nil,
                minPitch: CGFloat? = nil)
  • Declaration

    Swift

    public static func == (lhs: CameraBoundsOptions, rhs: CameraBoundsOptions) -> Bool
  • Declaration

    Swift

    public func hash(into hasher: inout Hasher)
  • Initialize a CameraBoundsOptions from the immutable CameraBounds type

    Declaration

    Swift

    public init(cameraBounds: CameraBounds)

    Parameters

    cameraBounds