RouteStyle
Represents a style configuration for the routes.
The properties related to the active route (i.e., the properties prefixed with "active") also apply to the selected route during the route planning phase.
During instance construction, certain input values are checked against the range of values expected for that field (e.g., width values must be non-negative).
Default assets and resources are bundled into the library. You do not need to supply any asset/resource files unless you want to customize something (for example, the icon of waypoint markers).
Important: This is a Public Preview API. It may be changed or removed at any time.
Constructors
Types
Represents a style configuration for the line between the final destination point and the final navigable point.
Represents a style configuration for the EV charging station waypoint marker.
Represents the criteria for vehicle restriction lines to be displayed with a pattern.
Represents a style configuration for the vehicle restriction line.
Properties
The color of the active route. You can control the opacity of the route line by using the alpha component of the ARGB color integer.
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.
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.
Sets the same color for all the alternative routes. If it's desired to overrule this semantic, alternativeLineColorOverrule property can be used by specifying the color per the index of the alternative route. You can control the opacity of the route line by using the alpha component of the ARGB color integer.
The color to individually overrule the color specified in alternativeLineColor. You can control the opacity of the route line by using the alpha component of the ARGB color integer.
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.
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.
The visibility of route waypoints.
The pin image for the departure marker.
The pin image for the destination marker.
The visibility of the departure marker. Default value is false
.
The visibility of the destination marker. Default value is true
.
The pin image for waypoint markers.