centroid library

Functions

centroid(GeoJSONObject geoJSON, {Map<String, dynamic>? properties}) Feature<Point>
Takes a Feature or a FeatureCollection and computes the centroid as the mean of all vertices within the object.