soft Gradient Transition
fun softGradientTransition(transitionDistance: Int): MapboxRouteLineOptions.Builder
Content copied to clipboard
When displayRestrictedRoadSections is set to true this value will influence the length of the gradient transition between traffic congestion colors. Larger values will result in the color transition occurring over a longer length of the line. Values between 5 and 75 are recommended. The default value is 30.
Return
the builder
Parameters
transitionDistance
a value above zero used for the gradient transition distance