fun setVanishingOffset(offset: Double): Expected<RouteLineError, RouteLineUpdateValue>

Sets the value of the vanishing point of the route line to the value specified. This is used for the vanishing route line feature and is only applicable only if the feature was enabled in the MapboxRouteLineOptions.


a state representing the side effects to be rendered on the map which will update the appearance of the route line or an error.



a value representing the percentage of the distance traveled along the route