Specific props relating to a displayed route's visual style.
Controls whether a route appears selected (highlighted) or deselected (dimmed). The SDK manages these styles automatically based on 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'};
Visual state-related style of the route.
Determines the state in which the route is rendered on the map:
Specific props relating to a displayed route's visual style.
Controls whether a route appears selected (highlighted) or deselected (dimmed). The SDK manages these styles automatically based on user interaction.
Remarks
Style States:
selected: Primary route with full color saturation and emphasisdeselected: Alternative routes shown dimmed/grayed outExample