CameraBounds

public struct CameraBounds : Hashable

Holds information about camera bounds.

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

    Declaration

    Swift

    public let 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 let maxZoom: CGFloat
  • The minimum zoom level, in mapbox zoom levels 0-25.5. Defaults to 0.

    Declaration

    Swift

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

    Declaration

    Swift

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

    Declaration

    Swift

    public let minPitch: CGFloat
  • Declaration

    Swift

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

    Swift

    public func hash(into hasher: inout Hasher)