MapView

open class MapView : UIView
extension MapView: LocationSupportableMapView

Undocumented

  • Undocumented

    Declaration

    Swift

    public private(set) var mapboxMap: MapboxMap! { get set }
  • 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 }
  • Controls the addition/removal of annotations to the map.

    Declaration

    Swift

    public internal(set) var annotations: AnnotationManager! { get }
  • Undocumented

    Declaration

    Swift

    public var options: RenderOptions { get set }
  • 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

    frame

    frame for the MapView.

    mapInitOptions

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

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

    Declaration

    Swift

    required public init?(coder: NSCoder)
  • 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)