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?
-
Initialize a
CameraBoundsOptions
from the immutableCameraBounds
typeDeclaration
Swift
public init(cameraBounds: CameraBounds)
Parameters
cameraBounds