Skip to main content

DrawShapeInput

A shape as it is given to load: everything but the generated fields.

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

Signature​

import type { DrawShapeInput } from "@mapcairn/core";

interface DrawShapeInput

Properties​

kind​

readonly kind: DrawKind;

Whether the shape is a point, line, polygon or circle.

radiusMetres​

readonly radiusMetres?: number;

A circle's radius in metres. Ignored for other kinds.

vertices​

readonly vertices: readonly LatLng[];

The shape's positions, in order.

See also​

Source: packages/core/src/draw/reducer.ts:62