JMap.Geometry.getCentroid
Returns a point feature representing the centroid of the provided feature or featureCollection.
a feature or a feature collection
const polygonFeature = ...// The method will return the centroid of "polygonFeature" as a point featureJMap.Geometry.getCentroid(polygonFeature) Copy
const polygonFeature = ...// The method will return the centroid of "polygonFeature" as a point featureJMap.Geometry.getCentroid(polygonFeature)
JMap.Geometry.getCentroid
Returns a point feature representing the centroid of the provided feature or featureCollection.