# UseDrawOptions

Options for [`useDraw`](https://docs.mapcairn.com/api/map/useDraw-function.md).

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

## Signature

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

## Properties

### active

```ts
readonly active: boolean;
```

Whether the Draw tool is open. Handles, clicks and keys only work then.

### getAdapter

```ts
readonly getAdapter: () => MapAdapter | null;
```

Returns the mounted adapter, or null. Read when a position or the map centre is needed.

### units

```ts
readonly units: UnitSystem;
```

The unit system for the readout and the announcements.

## See also

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

Source: [packages/map/src/tools/DrawToolbar/useDraw.ts:123](https://github.com/MapCairn/mapcairn/blob/main/packages/map/src/tools/DrawToolbar/useDraw.ts#L123)
