routeLine

fun ComponentInstaller.routeLine(mapView: MapView, config: RouteLineComponentConfig.() -> Unit = {}): Installation

Install component that renders route line on the map.

The installed component:

  • renders route lines returned by RoutesObserver

  • vanishes the traveled portion of the route line (if enabled via MapboxRouteLineOptions in the configuration)

  • selects alternative route on map click