RouteStyle

fun RouteStyle(activeLineColor: Color = DEFAULT_ACTIVE_LINE_COLOR, alternativeLineColor: Color = DEFAULT_ALTERNATIVE_LINE_COLOR, alternativeLineColorOverrule: Map<Int, Color> = emptyMap(), activeLineWidths: List<WidthByZoom> = DEFAULT_ACTIVE_LINE_WIDTHS, alternativeLineWidths: List<WidthByZoom> = DEFAULT_ALTERNATIVE_LINE_WIDTHS, activeOutlineWidths: List<WidthByZoom> = DEFAULT_ACTIVE_OUTLINE_WIDTHS, alternativeOutlineWidths: List<WidthByZoom> = DEFAULT_ALTERNATIVE_OUTLINE_WIDTHS)

Parameters

activeLineColor

The Color of the active route. You can control the opacity of the route line by using the alpha component of the Color.

alternativeLineColor

The Color of the alternative routes. This color may be overruled individually for each alternative route using alternativeLineColorOverrule. You can control the opacity of the route line by using the alpha component of the Color.

alternativeLineColorOverrule

The colors to individually overrule the color specified in alternativeLineColor. You can control the opacity of the route line by using the alpha component of the Color.

activeLineWidths

The line width (in dp units) of the active route. This parameter must be a non-empty list containing non-negative values for both the width and the zoom level that width is used at. Items in this list must not contain duplicated zoom level values.

alternativeLineWidths

The outline width (in dp units) of the alternative routes. This parameter must be a non-empty list containing non-negative values for both the width and the zoom level that width is used at. Items in this list must not contain duplicated zoom level values.

WARNING: THE CURRENT IMPLEMENTATION REQUIRES THIS LIST TO BE EQUAL TO activeLineWidths.

activeOutlineWidths

The outline width (in dp units) of the active route. This parameter must be a non-empty list containing non-negative values for both the width and the zoom level that width is used at. Items in this list must not contain duplicated zoom level values.

WARNING: THE CURRENT IMPLEMENTATION REQUIRES THE SIZE OF THIS LIST TO BE 1.

alternativeOutlineWidths

The outline width (in dp units) of the alternative routes. This parameter must be a non-empty list containing non-negative values for both the width and the zoom level that width is used at. Items in this list must not contain duplicated zoom level values.

WARNING: THE CURRENT IMPLEMENTATION REQUIRES THIS LIST TO BE EQUAL TO activeOutlineWidths.