# DrawMapBindings

Connects the draw tool to the live map without drawing anything: it gives
the adapter the handles of the selected shape, and passes the adapter's
handle presses and hovers to the tool. Render it inside `MapView`.

This is a function exported by `@mapcairn/map`, checked against version 0.2.0.

## Signature

```ts
import { DrawMapBindings } from "@mapcairn/map";
 
function DrawMapBindings(input: DrawMapBindingsProps): null;
```

## Parameters

- `{ draw }`
- `input` (`DrawMapBindingsProps`)

## Returns

`null`

## Remarks

The handles are cleared when the tool closes or the map goes, so a
 press on the bare map never starts a drag that nothing draws.

## See also

- [`DrawMapBindingsProps`](https://docs.mapcairn.com/api/map/DrawMapBindingsProps.md)

Source: [packages/map/src/tools/DrawToolbar/DrawMapBindings.tsx:21](https://github.com/MapCairn/mapcairn/blob/main/packages/map/src/tools/DrawToolbar/DrawMapBindings.tsx#L21)
