spatial-monorepo / core/src / updateRouteOptions
Function: updateRouteOptions()
updateRouteOptions(
map,options?):void
Defined in: packages/core/src/layers/WayfindingLayer.ts:411
Re-apply color/width/accessible/destinations options to an already-shown route without touching the route/transitions sources — issue #805: a declarative options-only change (e.g. toggling accessible mode) must not be silently swallowed by updateRoute, which only ever setDatas the route geometry. style is excluded here on purpose: switching style changes whether line-gradient vs line-color applies (and whether the source needs lineMetrics), which requires the full teardown+showRoute path already used by the styleChanged branch in WayfindingLayer.tsx. No-ops if no route is currently shown on this map.
Parameters
map
Map$1 | null | undefined
options?
RouteOptions = {}
Returns
void
