DrawOverlayProps
Props for DrawOverlay.
This is an interface exported by @mapcairn/map, checked against version 0.2.0.
Signature
import type { DrawOverlayProps } from "@mapcairn/map";
interface DrawOverlayProps
Properties
handles
readonly handles?: readonly MapEditHandle[];
The handles to draw, normally those of the selected shape. Leave empty while the tool is closed, so finished shapes show with no handles.
hover
readonly hover?: LatLng;
The position under the pointer, for the dashed preview of the next edge.
hoveredHandle
readonly hoveredHandle?: string | null;
The handle a mouse is over, drawn larger.
selection
readonly selection: DrawSelection | null;
The selected shape and vertex.
shapes
readonly shapes: readonly DrawShape[];
Every shape, finished or being drawn.
testId
readonly testId?: string;
Sets data-testid on the overlay.