-
The geographic coordinate that will be rendered at the midpoint of the area defined by
padding
. Defaults to (0, 0).Declaration
Swift
public var center: CLLocationCoordinate2D?
-
Insets from each edge of the map. Impacts the “principal point” of the graphical projection and the location at which
center
is rendered. Defaults to 0.Declaration
Swift
public var padding: UIEdgeInsets?
-
The zoom level of the map. Defaults to 0.
Declaration
Swift
public var zoom: CGFloat?
-
The bearing of the map, measured in degrees clockwise from true north. Defaults to 0.
Declaration
Swift
public var bearing: CLLocationDirection?
-
Pitch toward the horizon measured in degrees, with 0 degrees resulting in a top-down view for a two-dimensional map. Defaults to 0.
Declaration
Swift
public var pitch: CGFloat?
-
CameraOptions
represents a set of updates to make to the camera.Declaration
Swift
public init(center: CLLocationCoordinate2D? = nil, padding: UIEdgeInsets? = nil, anchor: CGPoint? = nil, zoom: CGFloat? = nil, bearing: CLLocationDirection? = nil, pitch: CGFloat? = nil)
Parameters
center
The geographic coordinate that will be rendered at the midpoint of the area defined by
padding
.padding
Insets from each edge of the map. Impacts the “principal point” of the graphical projection and the location at which
center
is rendered.anchor
zoom
The zoom level of the map.
bearing
The bearing of the map, measured in degrees clockwise from true north.
pitch
Pitch toward the horizon measured in degrees, with 0 degrees resulting in a top-down view for a two-dimensional map.
Return Value
A
CameraOptions
that contains all configuration information the map will use to determine which part of the map to render. -
Undocumented
Declaration
Swift
public init(cameraState: CameraState, anchor: CGPoint? = nil)
-
Declaration
Swift
public static func == (lhs: CameraOptions, rhs: CameraOptions) -> Bool
-
Declaration
Swift
public func hash(into hasher: inout Hasher)