renderClearRouteLineValue
fun renderClearRouteLineValue(style: Style, clearRouteLineValue: Expected<RouteLineError, RouteLineClearValue>)
Applies side effects related to clearing the route(s) from the map.
Parameters
style
an instance of the Style
clearRouteLineValue
an instance of Expected
fun renderClearRouteLineValue(style: Style, clearRouteLineValue: Expected<RouteLineError, RouteLineClearValue>, map: MapboxMap, callback: RoutesRenderedCallback)
Applies side effects related to the vanishing route line feature.
Parameters
style
an instance of the Style
clearRouteLineValue
an instance of Expected
callback
RoutesRenderedCallback to be invoked when the routes are cleared