GeoPolygon constructor

GeoPolygon(
  1. List<GeoCoordinates> vertices
)

Constructs an instance of this class from the provided vertices.

Throws InstantiationError if the number of vertices is less than three.

  • vertices List of vertices representing the polygon outer boundary in clockwise order.

Throws InstantiationException. Instantiation error.

Implementation

factory GeoPolygon(List<GeoCoordinates> vertices) => $prototype.$init(vertices);