UseLongPressOptions
Options for useLongPress.
This is an interface exported by @mapcairn/map, checked against version 0.2.0.
Signature
import type { UseLongPressOptions } from "@mapcairn/map";
interface UseLongPressOptions
Properties
getAdapter
readonly getAdapter: () => MapAdapter | null;
Returns the mounted adapter, or null while there is none.
hostRef
readonly hostRef: RefObject<HTMLElement | null>;
The map region element; points are measured from its top-left corner.
onLongPress
readonly onLongPress?: (event: MapLongPressEvent) => void;
Called once per long-press. Without it, presses are ignored.