Skip to content

spatial-monorepo


spatial-monorepo / core/src / clearRoute

Function: clearRoute()

clearRoute(map): void

Defined in: packages/core/src/layers/WayfindingLayer.ts:322

Remove any wayfinding route rendered on this map. Safe to call even if no route was ever shown (or if showRoute was never called on this specific map instance) — every removal is guarded so this is always a safe no-op in that case.

Parameters

map

Map$1 | null | undefined

Returns

void

Released under commercial licensing.