GeoJSONMultiPolygon constructor

GeoJSONMultiPolygon(
  1. List<List<List<List<double>>>> coordinates
)

Constructs a GeoJSONMultiPolygon from the given coordinates.

The coordinates should contain at least one Polygon, and each Polygon should contain at least two points (the start and end point of a linear ring).

Implementation

GeoJSONMultiPolygon(this.coordinates)
    : assert(coordinates.first.first.length >= 2,
          'The coordinates MUST be two or more elements');