the editable site (validation-lab)
This commit is contained in:
commit
3ac81d5a52
13454 files changed
+2227005
No files matched your search
+9
@@ -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;
|
||||
Reference in new issue
Block a user