area method
Returns the projected planar area (typically in square pixels) for the
specified GeoJSON object
.
path.area(california) // 17063.1671837991 px²
Point, MultiPoint, LineString and MultiLineString geometries have zero area. For Polygon and MultiPolygon geometries, this method first computes the area of the exterior ring, and then subtracts the area of any interior holes. This method observes any clipping performed by the transform; see GeoProjection.clipAngle and GeoProjection.clipExtent. This is the planar equivalent of geoArea.
Implementation
double area(Map object) => planar.area(object, _transformStream);