The props of a displayed route's visual style.
They control whether a route appears selected (highlighted) or deselected (dimmed). The SDK manages these styles automatically from user interaction.
Style states:
selected
deselected
// Main selected routeconst selectedStyle: RouteStateProps = { routeState: 'selected'};// Alternative routeconst alternativeStyle: RouteStateProps = { routeState: 'deselected'}; Copy
// Main selected routeconst selectedStyle: RouteStateProps = { routeState: 'selected'};// Alternative routeconst alternativeStyle: RouteStateProps = { routeState: 'deselected'};
The route's visual state.
It sets how the route renders on the map:
The props of a displayed route's visual style.
They control whether a route appears selected (highlighted) or deselected (dimmed). The SDK manages these styles automatically from user interaction.
Remarks
Style states:
selected: Primary route with full color saturation and emphasisdeselected: Alternative routes shown dimmed/grayed outExample