updateWithRouteProgress

Updates the state of the route line based on data in the RouteProgress passing a result to the consumer that should be rendered by the MapboxRouteLineView.

Calling this method and rendering the result is required in order to use the vanishing route line feature and/or to style inactive route legs independently and/or display multi-leg routes with the active leg appearing to overlap the inactive leg(s).

This method will execute tasks on a background thread. There is a cancel method which will cancel the background tasks.

Parameters

routeProgress

a route progress object

consumer

a consumer for the result of this call