center property
Returns the center Point of the Feature. This is the average of all Coordinates in the Feature.
Implementation
@override
Point get center {
List<Point> points = explode();
double lat = 0;
double long = 0;
for (final point in points) {
lat += point.coordinate.latitude;
long += point.coordinate.longitude;
}
return Point.fromLatLong(lat / points.length, long / points.length);
}