# MeasureOverlayProps

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

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

## Signature

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

## Properties

### hover

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

The point under the pointer, drawn as a dashed preview to the last point.

### mode

```ts
readonly mode: "distance" | "area";
```

A distance is an open line; an area is a closed, filled polygon.

### points

```ts
readonly points: readonly LatLng[];
```

The committed points, in the order they were added.

### testId

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

Sets `data-testid` on the overlay.

## See also

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

Source: [packages/map/src/host/overlays/MeasureOverlay.tsx:20](https://github.com/MapCairn/mapcairn/blob/main/packages/map/src/host/overlays/MeasureOverlay.tsx#L20)
