-
Undocumented
Declaration
Swift
public private(set) var mapboxMap: MapboxMap! { get set } -
The
gesturesobject will be responsible for all gestures on the map.Declaration
Swift
public internal(set) var gestures: GestureManager! { get } -
The
ornamentsobject will be responsible for all ornaments on the map.Declaration
Swift
public internal(set) var ornaments: OrnamentsManager! { get } -
The
cameraobject manages a camera’s view lifecycle..Declaration
Swift
public internal(set) var camera: CameraAnimationsManager! { get } -
The
locationobject handles location events of the map.Declaration
Swift
public internal(set) var location: LocationManager! { get } -
Controls the addition/removal of annotations to the map.
Declaration
Swift
public internal(set) var annotations: AnnotationOrchestrator! { get } -
A Boolean value that indicates whether the underlying
CAMetalLayerof theMapViewpresents its content using a CoreAnimation transactionBy default, this is
falseresulting in the output of a rendering pass being displayed on theCAMetalLayeras quickly as possible (and asynchronously). This typically results in the fastest rendering performance.If, however, the
MapViewis overlaid with aUIKitelement which must be pinned to a particular lat-long, then setting this totruewill result in better synchronization and less jitter.Declaration
Swift
public var presentsWithTransaction: Bool { get set } -
The preferred frames per second used for map rendering
Declaration
Swift
public var preferredFramesPerSecond: PreferredFPS { get set } -
The
timestampfrom the underlyingCADisplayLinkif it exists, otherwisenilDeclaration
Swift
@_spi(Metrics) public var displayLinkTimestamp: CFTimeInterval? { get } -
The
durationfrom the underlyingCADisplayLinkif it exists, otherwisenilDeclaration
Swift
@_spi(Metrics) public var displayLinkDuration: CFTimeInterval? { get } -
The map’s current camera
Declaration
Swift
public var cameraState: CameraState { get } -
The map’s current anchor, calculated after applying padding (if it exists)
Declaration
Swift
public var anchor: CGPoint { get } -
Initialize a MapView
Declaration
Swift
public init(frame: CGRect, mapInitOptions: MapInitOptions = MapInitOptions())Parameters
frameframe for the MapView.
mapInitOptionsMapInitOptions; default usesResourceOptionsManager.defaultto retrieve a shared default resource option, including the access token. -
Undocumented
Declaration
Swift
required public init?(coder: NSCoder) -
Undocumented
Declaration
Swift
open override func awakeFromNib() -
Undocumented
Declaration
Swift
public override func layoutSubviews() -
Undocumented
Declaration
Swift
open override func willMove(toWindow newWindow: UIWindow?) -
Undocumented
Declaration
Swift
open override func didMoveToWindow() -
Undocumented
Declaration
Swift
open override func didMoveToSuperview() -
Declaration
Swift
public func point(for coordinate: CLLocationCoordinate2D) -> CGPoint -
Declaration
Swift
public func metersPerPointAtLatitude(latitude: CLLocationDegrees) -> CLLocationDistance -
Undocumented
Declaration
Swift
public func subscribeRenderFrameHandler(_ handler: @escaping (MapboxCoreMaps.Event) -> Void)
MapView Class Reference