VMWayfindingMapView

public class VMWayfindingMapView : VMVectorMapView

Mapview with wayfinding support

Since

1.4

Public Properties

Initializers

Method Overrides

  • Find map unit containing a location on the given floor

    Declaration

    Swift

    open override func getMapUnitContaining(_ location: CLLocationCoordinate2D, _ vmdFloor: VMMSBaseFloor?) -> VMMSMapUnit?

    Parameters

    location

    The location to check

    vmdFloor

    The floor to check

    Return Value

    The containing map unit, or nil

  • Called when annotation is selected

    • mapView: the map
    • annotation: the annotation

    Declaration

    Swift

    open override func mapView(_ mapView: MGLMapView, didSelect annotation: MGLAnnotation)
  • Provide stroke color for lines

    • mapView: the mapview
    • annotation: the shape annotation

    Declaration

    Swift

    open override func mapView(_ mapView: MGLMapView, strokeColorForShapeAnnotation annotation: MGLShape) -> UIColor

    Return Value

    the color

  • Provide stroke width for lines

    • mapView: the mapview
    • annotation: the line

    Declaration

    Swift

    open override func mapView(_ mapView: MGLMapView, lineWidthForPolylineAnnotation annotation: MGLPolyline) -> CGFloat

    Return Value

    the width

  • Provide the alpha for shapes

    • mapView: the mapview
    • annotation: the shape

    Declaration

    Swift

    open override func mapView(_ mapView: MGLMapView, alphaForShapeAnnotation annotation: MGLShape) -> CGFloat

    Return Value

    the alpha value

  • Provide a custom view for an annotation

    • mapView: the mapview
    • annotation: the annotation

    Declaration

    Swift

    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

    open override func mapView(_ mapView: MGLMapView, imageFor annotation: MGLAnnotation) -> MGLAnnotationImage?

    Return Value

    the custom image