CameraOptions
public extension CameraOptions
-
The
CameraOptionsobject 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
centerCoordinateThe map coordinate that will represent the center of the viewport.
paddingThe padding surrounding the
CameraView‘s viewport. Defaults to nil.anchorPoint in this
CameraView‘s coordinate system on which to “anchor” responses to user-initiated gestures.zoomThe zoom level of the map. Defaults to nil.
pitchPitch toward the horizon measured in degrees, with 0 degrees resulting in a two-dimensional map.
Return Value
A
CameraOptionsobject that contains all configuration information theCameraViewwill 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
CameraOptions Extension Reference