Skip to main content

DrawFeedback

The outcome of an export or a copy, shown beside the buttons and announced.

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

Signature​

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

interface DrawFeedback

Properties​

kind​

readonly kind: "success" | "error";

Whether the outcome is a success or an error.

readAs​

readonly readAs?: WktAxisOrder;

Set on an import that read nothing because the file fits only this other WKT axis order: the order that UseDraw reads the same file in.

text​

readonly text: string;

The message shown beside the buttons and announced.

See also​

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