CentroidCalculator class

Places the Polygon.label at the centroid calculated using the signed area formula

This a little more computationally expensive than the simple centroid calculator, but yields better results, especially for non-convex polygons.

Implemented types

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

call(Polygon<Object> polygon) LatLng
Given a polygon (and its points), calculate a single position at which the center of the label should be placed
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited