AreaGeometry
The outline of an area, as GeoJSON writes a Polygon (a ring, then any
holes) or a MultiPolygon. It uses plain arrays, so it passes straight to
code typed with the GeoJSON types, and the geometry helpers in core accept it.
This is a type alias exported by @mapcairn/core, checked against version 0.2.0.
Signature
import type { AreaGeometry } from "@mapcairn/core";
type AreaGeometry = {
readonly type: "Polygon";
readonly coordinates: number[][][];
} | {
readonly type: "MultiPolygon";
readonly coordinates: number[][][][];
};