Route properties combined with styling and index information.
Associates route data with its position in a multi-route result and its visual state.
Type Declaration
id: string
Unique identifier for the object to ensure it can be displayed on MapLibre.
Remarks
This id es expected to become the main feature id by MapLibre via the 'promotedId' property.
routeIndex: number
Zero-based index of this route in the routes array.
Remarks
Used to identify which route this data belongs to when displaying
multiple alternative routes.
Remarks
Used internally by the routing module to track and style multiple routes.
The routeIndex corresponds to the route's position in the original routes array.
Example
constrouteProps: DisplayRouteRelatedProps = { routeState:'selected', routeIndex:0// First route in the array };
Route properties combined with styling and index information.
Associates route data with its position in a multi-route result and its visual state.