PinCardProps
Props for PinCard.
This is an interface exported by @mapcairn/map, checked against version 0.2.0.
Signature
import type { PinCardProps } from "@mapcairn/map";
interface PinCardProps
Properties
headingLevel
readonly headingLevel?: 2 | 3 | 4;
The level of the "Dropped pin" heading, so it fits the host's outline. Defaults to 2.
headingRef
readonly headingRef?: Ref<HTMLHeadingElement>;
Receives the heading element, which takes focus by script (tabIndex
-1), so the sheet that opens the card can move focus to it.
lookupNote
readonly lookupNote?: ReactNode;
What the address lookup sends and to whom, shown under the "Look up
address" button, which it describes. Defaults to the catalogue's
tools.pin.lookupNote, which does not name the service because the SDK
does not know which one a host uses. A host names its search provider
here. Phrasing content only: it sits inside a paragraph.
onClear
readonly onClear: () => void;
Called when the user chooses "Clear pin".
onClose
readonly onClose?: () => void;
When given, a close button is shown that calls it.
position
readonly position: LatLng;
Where the pin is.