Skip to main content

GeometryInput

What the geometry helpers accept: a GeoJSON geometry, or a feature that holds one. Every helper checks its input at run time with validateGeometry, so a value that only claims this type is still refused with a GeometryError.

This is a type alias exported by @mapcairn/core, checked against version 0.2.0.

Signature​

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

type GeometryInput = Geometry | Feature<Geometry | null>;

Source: packages/core/src/geometry/types.ts:11