FeatureCollection<E extends Feature<Geometry>>.of constructor

const FeatureCollection<E extends Feature<Geometry>>.of({
  1. required BoundedSeries<E> features,
  2. Bounds<Point<num>>? bounds,
})

Creates a feature collection from a series of features.

The features must BoundedSeries containing feature objects.

If an optional bounds for a new feature collection is not provided then bounds of the series of features is used also as collection bounds.

Implementation

const FeatureCollection.of({
  required BoundedSeries<E> features,
  Bounds? bounds,
})  : _features = features,
      _collectionBounds = bounds;