the editable site (validation-lab)

This commit is contained in:
kpgarrod committed 2026-11-21 08:03:55 +01:00
commit 3ac81d5a52
13454 files changed
+2227005

No files matched your search

+9
View File
@@ -0,0 +1,9 @@
import { Feature, LineString, Polygon } from "geojson";
import { CartesianPoint } from "../common";
/**
* Calculates the centroid of a GeoJSON Polygon or LineString in Web Mercator
* @param {Feature<Polygon | LineString>} feature - The GeoJSON Feature containing either a Polygon or LineString
* @returns {{ x: number, y: number }} The centroid of the polygon or line string in Web Mercator coordinates.
*/
export declare function webMercatorCentroid(feature: Feature<Polygon | LineString>): CartesianPoint;