GeoPolygon constructor
- List<
GeoCoordinates> vertices
Constructs an instance of this class from the provided vertices.
Throws InstantiationError if the number of vertices is less than three.
verticesList of vertices representing the polygon outer boundary in clockwise order.
Throws InstantiationException. Instantiation error.
Implementation
factory GeoPolygon(List<GeoCoordinates> vertices) => $prototype.$init(vertices);