CarRouteLineRenderer
class CarRouteLineRenderer(options: CarRouteLineRendererOptions = CarRouteLineRendererOptions.Builder()
.build(), carRoutesProvider: CarRoutesProvider = NavigationCarRoutesProvider()) : MapboxCarMapObserver
This class is to simplify the interaction with MapboxRouteLineApi, MapboxRouteArrowView, and RouteProgressObserver use cases that the app needs in the car.
Anything for rendering the car's route line, is handled here at this point.
Parameters
options
customizes the route line and maneuver arrow rendering components, see CarRouteLineRendererOptions.
carRoutesProvider
provides the routes to draw.
Constructors
Link copied to clipboard
constructor(options: CarRouteLineRendererOptions, carRoutesProvider: CarRoutesProvider, onRouteClick: (NavigationRoute) -> Unit?)
Creates a renderer that also reports the route the driver taps on the map.
constructor(options: CarRouteLineRendererOptions = CarRouteLineRendererOptions.Builder()
.build(), carRoutesProvider: CarRoutesProvider = NavigationCarRoutesProvider())