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
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
Source: packages/map/src/tools/DrawToolbar/DrawMapBindings.tsx:21