Skip to content

spatial-monorepo


spatial-monorepo / core/src / WayfindingLayer

Function: WayfindingLayer()

WayfindingLayer(__namedParameters): null

Defined in: packages/core/src/components/LayerComponents.tsx:43

WayfindingLayer renders no DOM — it drives the imperative WayfindingLayer functions based on the route prop lifecycle.

State machine (via shownRef): mount with non-null route → showRoute, shownRef = true route changes (non-null) → updateRoute (NOT showRoute) route → null → clearRoute, shownRef = false unmount while shown → clearRoute

Parameters

__namedParameters

WayfindingLayerProps

Returns

null

Released under commercial licensing.