Route properties with styling and index information.
They tie route data to its position in a multi-route result and to its visual state.
The object's unique identifier, so that MapLibre can display it.
MapLibre is expected to promote this id to the main feature id through the promoteId property.
promoteId
The zero-based position of this route among the routes shown, the index selectRoute takes.
selectRoute
It identifies the route this data belongs to when you display multiple alternative routes.
The routing module uses them internally to track and style multiple routes. routeIndex is the route's position among the routes showRoutes was given.
routeIndex
showRoutes
const routeProps: DisplayRouteRelatedProps = { id: 'route-0-section-3', routeState: 'selected', routeIndex: 0 // First route shown}; Copy
const routeProps: DisplayRouteRelatedProps = { id: 'route-0-section-3', routeState: 'selected', routeIndex: 0 // First route shown};
Route properties with styling and index information.
They tie route data to its position in a multi-route result and to its visual state.