Skip to content

spatial-monorepo


spatial-monorepo / ui/src / DirectionsPanelProps

Interface: DirectionsPanelProps

Defined in: packages/ui/src/DirectionsPanel.tsx:6

Properties

onClose?

optional onClose?: () => void

Defined in: packages/ui/src/DirectionsPanel.tsx:9

Returns

void


onStepClick?

optional onStepClick?: (instruction, index) => void

Defined in: packages/ui/src/DirectionsPanel.tsx:16

Fired when a step is clicked. Receives the routed Instruction (issue #484) — use instruction.coordinate to focus/pan the map to that step. coordinate is only absent for instructions the legacy 'graph' engine produced (it doesn't carry per-instruction geometry).

Parameters

instruction

Instruction

index

number

Returns

void


position?

optional position?: ControlPosition

Defined in: packages/ui/src/DirectionsPanel.tsx:8


route

route: Route

Defined in: packages/ui/src/DirectionsPanel.tsx:7

Released under commercial licensing.