centroid method
Returns the projected planar centroid (typically in pixels) for the
specified GeoJSON object
.
This is handy for, say, labeling state or county boundaries, or displaying a symbol map. For example, a noncontiguous cartogram might scale each state around its centroid. This method observes any clipping performed by the transform.
Implementation
List<double> centroid(Map object) =>
planar.centroid(object, _transformStream);