Skip to main content

UseDrawOptions

Options for useDraw.

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

Signature​

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

interface UseDrawOptions

Properties​

active​

readonly active: boolean;

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

getAdapter​

readonly getAdapter: () => MapAdapter | null;

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

units​

readonly units: UnitSystem;

The unit system for the readout and the announcements.

See also​

Source: packages/map/src/tools/DrawToolbar/useDraw.ts:123