MapView

open class MapView : BaseMapView
extension MapView: LocationSupportableMapView

Undocumented

  • The gestures object 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 camera object 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 }
  • The style object supports run time styling.

    Declaration

    Swift

    public internal(set) var style: Style! { get }
  • Controls the addition/removal of annotations to the map.

    Declaration

    Swift

    public internal(set) var annotations: AnnotationManager! { get }
  • Initialize a MapView

    Declaration

    Swift

    public override init(frame: CGRect, mapInitOptions: MapInitOptions = MapInitOptions())

    Parameters

    frame

    frame for the MapView.

    mapInitOptions

    MapInitOptions; default uses CredentialsManager.default to retrieve a shared default access token.

  • 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 updateMapConfig: (inout MapConfig) -> Void)

    Parameters

    update

    A closure that is fed the current map options and manipulates it in some way.

  • 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)