CameraBoundsOptions

public struct CameraBoundsOptions : Hashable

Holds options to be used for setting camera bounds.

  • The latitude and longitude bounds to which the camera center are constrained.

    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.

    Declaration

    Swift

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

    Declaration

    Swift

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

    Declaration

    Swift

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

    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