MultiPoint.fromGeometries constructor

MultiPoint.fromGeometries(
  1. Iterable<Point> points, {
  2. Box? bounds,
})

A multi point geometry from an iterable of Point objects in points.

A new instance shares positions (of Point objects) with the source.

An optional bounds set a minimum bounding box for a geometry.

Implementation

factory MultiPoint.fromGeometries(Iterable<Point> points, {Box? bounds}) =>
    MultiPoint(
      points.map((point) => point.position).toList(growable: false),
      bounds: bounds,
    );