DirectionsPanelProps
Props for DirectionsPanel.
This is an interface exported by @mapcairn/map, checked against version 0.2.0.
Signature
import type { DirectionsPanelProps } from "@mapcairn/map";
interface DirectionsPanelProps
Properties
directions
readonly directions: UseDirections;
The directions state and actions, from useDirections.
getBias
readonly getBias?: () => Bounds | undefined;
Returns the box to favour in the place search, usually the visible map.
Optional, and passed to useSearch, whose note on what a bias
sends applies.
headingLevel
readonly headingLevel?: 3 | 4;
The level of the group headings, one below the sheet's title. Defaults to 3.
note
readonly note?: ReactNode;
What a request sends and to whom, shown under the buttons. Defaults to
the catalogue's tools.directions.note, which does not name the service.
A host names its routing service here.
pin
readonly pin: LatLng | null;
The dropped pin, offered as a stop, or null when there is none.
See also
Source: packages/map/src/tools/Directions/DirectionsPanel.tsx:66