PolygonGeographicArea constructor

PolygonGeographicArea({
  1. List<Coordinates> coordinates = const <Coordinates>[],
})

Creates a polygonal geographic area from a list of coordinate vertices.

Constructs a polygon using the provided coordinates as vertices. The polygon boundary is formed by connecting consecutive coordinates in order, with the last coordinate automatically connected back to the first to close the shape.

Parameters

  • coordinates: An ordered list of Coordinates defining the polygon vertices. Should contain at least 3 points for a valid polygon.

Important

For correct behavior, ensure the coordinate list has at least 3 vertices and avoid self-intersecting or overlapping edges.

See also:

Implementation

PolygonGeographicArea({this.coordinates = const <Coordinates>[]});