# DirectionsOverlayProps

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

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

## Signature

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

## Properties

### showCrosshair

```ts
readonly showCrosshair: boolean;
```

Draws a crosshair where "Add stop at map centre" will put a stop, which
is the middle of the part of the map the panel leaves free.

### stops

```ts
readonly stops: readonly DirectionStop[];
```

The stops, in order. Each is drawn as a lettered disc.

### testId

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

Sets `data-testid` on the overlay.

## See also

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

Source: [packages/map/src/tools/Directions/DirectionsOverlay.tsx:13](https://github.com/MapCairn/mapcairn/blob/main/packages/map/src/tools/Directions/DirectionsOverlay.tsx#L13)
