MTCameraOptions
public struct MTCameraOptions : @unchecked Sendable
extension MTCameraOptions: Codable
Options for controlling the desired location, zoom, bearing, and pitch of the camera.
-
Geographical center of the map.
Declaration
Swift
public var center: CLLocationCoordinate2D?
-
Zoom level of the map.
Declaration
Swift
public var zoom: Double?
-
The bearing of the map, measured in degrees counter-clockwise from north.
Declaration
Swift
public var bearing: Double?
-
The pitch (tilt) of the map, measured in degrees away from the plane of the screen (0-85).
Declaration
Swift
public var pitch: Double?
-
Initializes options.
Declaration
Swift
public init( center: CLLocationCoordinate2D? = nil, zoom: Double? = nil, bearing: Double? = nil, pitch: Double? = nil )
-
Declaration
Swift
public func encode(to encoder: Encoder) throws