polygonSeries method

BoundedSeries<Polygon<PointType>> polygonSeries(
  1. Iterable polygons
)

Parses a series of polygons.

Throws FormatException if cannot create a series of polygons.

Implementation

BoundedSeries<Polygon<PointType>> polygonSeries(Iterable<dynamic> polygons) =>
    BoundedSeries<Polygon<PointType>>.from(
      polygons.map<Polygon<PointType>>(
        (dynamic rings) => polygon(rings as Iterable),
      ),
    );