# DrawOverlayProps

Props for [`DrawOverlay`](https://docs.mapcairn.com/api/map/DrawOverlay.md).

This is an interface exported by `@mapcairn/map`, checked against version 0.2.0.

## Signature

```ts
import type { DrawOverlayProps } from "@mapcairn/map";
 
interface DrawOverlayProps
```

## Properties

### handles

```ts
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

```ts
readonly hover?: LatLng;
```

The position under the pointer, for the dashed preview of the next edge.

### hoveredHandle

```ts
readonly hoveredHandle?: string | null;
```

The handle a mouse is over, drawn larger.

### selection

```ts
readonly selection: DrawSelection | null;
```

The selected shape and vertex.

### shapes

```ts
readonly shapes: readonly DrawShape[];
```

Every shape, finished or being drawn.

### testId

```ts
readonly testId?: string;
```

Sets `data-testid` on the overlay.

## See also

- [`MapEditHandle`](https://docs.mapcairn.com/api/core/MapEditHandle.md)
- [`LatLng`](https://docs.mapcairn.com/api/core/LatLng.md)
- [`DrawSelection`](https://docs.mapcairn.com/api/core/DrawSelection.md)
- [`DrawShape`](https://docs.mapcairn.com/api/core/DrawShape.md)

Source: [packages/map/src/host/overlays/DrawOverlay.tsx:40](https://github.com/MapCairn/mapcairn/blob/main/packages/map/src/host/overlays/DrawOverlay.tsx#L40)
