multiPoint method
Writes a multi point geometry with an array of points
(each with a
position).
Use an optional name
to specify a name for a geometry (when applicable).
An optional bounds
can used set a minimum bounding box for a geometry
written. A writer implementation may use it or ignore it.
An example to write a multi point geometry with 3 points:
content.multiPoint(
[
[-1.1, -1.1].xy,
Projected(x: 2.1, y: -2.5),
Geographic(lon: 3.5, lat: -3.49),
],
);
Implementation
@override
void multiPoint(
Iterable<Position> points, {
String? name,
Box? bounds,
}) {
_add(
MultiPoint(
points is List<Position> ? points : points.toList(growable: false),
bounds: bounds,
),
name: name,
);
}