MapView
open class MapView : BaseMapView, EventsEmitter
extension MapView: LocationSupportableMapView
Undocumented
-
The
gestureManager
will be responsible for all gestures on the mapDeclaration
Swift
public internal(set) var gestureManager: GestureManager! { get }
-
The
cameraManager
that manages a camera’s view lifecycle.Declaration
Swift
public internal(set) var cameraManager: CameraManager! { get }
-
The
locationManager
that handles location events of the mapDeclaration
Swift
public internal(set) var locationManager: LocationManager! { get }
-
The
style
object supports run time stylingDeclaration
Swift
public internal(set) var style: Style! { get }
-
Controls the addition/removal of annotations to the map.
Declaration
Swift
public internal(set) var annotationManager: AnnotationManager! { get }
-
A reference to the
EventsManager
used for dispatching telemetry.Declaration
Swift
public var eventsListener: EventsListener!
-
Undocumented
Declaration
Swift
public init(with frame: CGRect, resourceOptions: ResourceOptions, glyphsRasterizationOptions: GlyphsRasterizationOptions = GlyphsRasterizationOptions.default, styleURL: StyleURL? = .streets)
-
Undocumented
Declaration
Swift
public required init?(coder: NSCoder)
-
Undocumented
Declaration
Swift
open override func awakeFromNib()
-
Updates the map with new configuration options. Causes underlying structures to reload configuration synchronously.
Declaration
Swift
public func update(with updateMapOptions: (inout MapOptions) -> Void)
Parameters
update
A closure that is fed the current map options and manipulates it in some way.
-
Undocumented
Declaration
Swift
public func tapped()
-
Undocumented
Declaration
Swift
public func compassTapped()
-
Undocumented
Declaration
Swift
public func subscribeCameraChangeHandler(_ handler: @escaping (CameraOptions) -> Void)
-
Declaration
Swift
public func screenCoordinate(for locationCoordinate: CLLocationCoordinate2D) -> ScreenCoordinate
-
Declaration
Swift
public func metersPerPointAtLatitude(latitude: CLLocationDegrees) -> CLLocationDistance
-
Declaration
Swift
public func subscribeRenderFrameHandler(_ handler: @escaping (MapboxCoreMaps.Event) -> Void)
-
Declaration
Swift
public func subscribeStyleChangeHandler(_ handler: @escaping (MapboxCoreMaps.Event) -> Void)