CameraOptions
public extension CameraOptions
-
The
CameraOptions
object contains information about the current state of the camera.- Bearing bearing: The bearing of the viewport, measured in degrees clockwise from true north.
Declaration
Swift
convenience init(center: CLLocationCoordinate2D? = nil, padding: UIEdgeInsets? = nil, anchor: CGPoint? = nil, zoom: CGFloat? = nil, bearing: CLLocationDirection? = nil, pitch: CGFloat? = nil)
Parameters
centerCoordinate
The map coordinate that will represent the center of the viewport.
padding
The padding surrounding the
CameraView
‘s viewport. Defaults to nil.anchor
Point in this
CameraView
‘s coordinate system on which to “anchor” responses to user-initiated gestures.zoom
The zoom level of the map. Defaults to nil.
pitch
Pitch toward the horizon measured in degrees, with 0 degrees resulting in a two-dimensional map.
Return Value
A
CameraOptions
object that contains all configuration information theCameraView
will use to render the map’s viewport. -
Undocumented
Declaration
Swift
var center: CLLocationCoordinate2D? { get set }
-
Undocumented
Declaration
Swift
var padding: UIEdgeInsets? { get set }
-
Undocumented
Declaration
Swift
var anchor: CGPoint? { get set }
-
Undocumented
Declaration
Swift
var zoom: CGFloat? { get set }
-
Undocumented
Declaration
Swift
var bearing: CLLocationDirection? { get set }
-
Undocumented
Declaration
Swift
var pitch: CGFloat? { get set }
-
Undocumented
Declaration
Swift
public static func == (lhs: CameraOptions, rhs: CameraOptions) -> Bool