spatial-monorepo / ui/src / WayfindingControl
Variable: WayfindingControl
constWayfindingControl:FC`<WayfindingControlProps>`
Defined in: packages/ui/src/WayfindingControl.tsx:155
<WayfindingControl> renders two draggable MapLibre Markers (green = start, red = stop) and a route line layer. Dropping a marker snaps it to the nearest navigation graph node. The route updates on every dragend without full layer teardown. A Reset button removes both markers and clears the route.
Keyboard: Tab to focus markers, Enter to drop at current map center, Escape to remove.
