spatial-monorepo / ui/src / DirectionsPanelProps
Interface: DirectionsPanelProps
Defined in: packages/ui/src/DirectionsPanel.tsx:6
Properties
onClose?
optionalonClose?: () =>void
Defined in: packages/ui/src/DirectionsPanel.tsx:9
Returns
void
onStepClick?
optionalonStepClick?: (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?
optionalposition?:ControlPosition
Defined in: packages/ui/src/DirectionsPanel.tsx:8
route
route:
Route
Defined in: packages/ui/src/DirectionsPanel.tsx:7
