NavigationMapView
open class NavigationMapView: MGLMapView
NavigationMapView is a subclass of MGLMapView with convenience functions for adding Route lines to a map.
-
Adds or updates both the route line and the route line casing
Declaration
Swift
public func showRoute(_ route: Route, legIndex: Int? = nil) -
Removes route line and route line casing from map
Declaration
Swift
public func removeRoute() -
Adds the route waypoints to the map given the current leg index. Previous waypoints for completed legs will be omitted.
Declaration
Swift
public func showWaypoints(_ route: Route, legIndex: Int = 0) -
Removes all waypoints from the map.
Declaration
Swift
public func removeWaypoints() -
Shows the step arrow given the current
RouteProgress.Declaration
Swift
public func addArrow(route: Route, legIndex: Int, stepIndex: Int)
Install in Dash
NavigationMapView Class Reference