withRouteStyleDescriptors
fun withRouteStyleDescriptors(routeStyleDescriptors: List<RouteStyleDescriptor>): MapboxRouteLineOptions.Builder
Content copied to clipboard
RouteStyleDescriptor is an override of an alternative route line coloring based on a provided identifier. Setting one or more RouteStyleDescriptor objects here will configure the layer such that any route set with a matching identifier will get colored according to the values provided in the RouteStyleDescriptor.
Return
the builder
Parameters
routeStyleDescriptors
a collection of RouteStyleDescriptor objects