displaySoftGradientForTraffic

fun displaySoftGradientForTraffic(displaySoftGradientForTraffic: Boolean): MapboxRouteLineViewDynamicOptionsBuilder

Determines if the color transition between traffic congestion changes should use a soft gradient appearance or abrupt color change. This is false by default.

Return

the builder

Parameters

displaySoftGradientForTraffic

whether soft gradient transition should be enabled