VMWayfindingMapView
@MainActor
public class VMWayfindingMapView : VMVectorMapView
Mapview with wayfinding support
Since
1.4-
Declaration
Swift
@MainActor override public var style: VMVenueStyle? { get set }
-
init(vmd:activeIndoorFloors: activeOutdoorFloors: frame: iconBaseURL: fontBaseURL: styleURL: maptilerAccessToken: ) Declaration
Swift
@MainActor public override init( vmd: VMMSMap, activeIndoorFloors: [VMMSBaseFloor], activeOutdoorFloors: [VMMSBaseFloor], frame: CGRect, iconBaseURL: URL?, fontBaseURL: URL?, styleURL: URL?, maptilerAccessToken: String? ) -
Declaration
Swift
@MainActor public convenience init( vmd: VMMSMap, activeIndoorFloors: [VMMSBaseFloor], activeOutdoorFloors: [VMMSBaseFloor], frame: CGRect, iconBaseURL: URL?, fontBaseURL: URL? ) -
Declaration
Swift
@MainActor public convenience init( frame: CGRect, vmd: VMMSMap, styleURL: URL?, maptilerAccessToken: String? ) -
Declaration
Swift
@MainActor public convenience init(frame: CGRect, vmd: VMMSMap) -
Default init for nscoder
Since
2.0.2Declaration
Swift
@MainActor public required init?(coder: NSCoder)
-
Find map unit containing a location on the given floor
Declaration
Swift
@MainActor open override func getMapUnitContaining( _ location: CLLocationCoordinate2D, _ vmdFloor: VMMSBaseFloor? ) -> VMMSMapUnit?Parameters
locationThe location to check
vmdFloorThe floor to check
Return Value
The containing map unit, or nil
-
Called when annotation is selected
- mapView: the map
- annotation: the annotation
Declaration
Swift
@MainActor open override func mapView(_ mapView: MGLMapView, didSelect annotation: MGLAnnotation) -
Provide stroke color for lines
- mapView: the mapview
- annotation: the shape annotation
Declaration
Swift
@MainActor open override func mapView( _ mapView: MGLMapView, strokeColorForShapeAnnotation annotation: MGLShape ) -> UIColorReturn Value
the color
-
Provide stroke width for lines
- mapView: the mapview
annotation: the line
Declaration
Swift
@MainActor open override func mapView( _ mapView: MGLMapView, lineWidthForPolylineAnnotation annotation: MGLPolyline ) -> CGFloatReturn Value
the width
-
Provide the alpha for shapes
- mapView: the mapview
annotation: the shape
Declaration
Swift
@MainActor open override func mapView( _ mapView: MGLMapView, alphaForShapeAnnotation annotation: MGLShape ) -> CGFloatReturn Value
the alpha value
-
Provide a custom view for an annotation
- mapView: the mapview
- annotation: the annotation
Declaration
Swift
@MainActor open override func mapView( _ mapView: MGLMapView, viewFor annotation: MGLAnnotation ) -> MGLAnnotationView?Return Value
the custom view
-
Provide a custom image for an annoation
- mapView: the map
- annotation: the annotation
Declaration
Swift
@MainActor open override func mapView( _ mapView: MGLMapView, imageFor annotation: MGLAnnotation ) -> MGLAnnotationImage?Return Value
the custom image