setVanishingOffset

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.

Return

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

Parameters

offset

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