Skip to main content

multiPoint

Creates a MultiPoint geometry from an array of positions.

Type Parameters

  • P

Parameters

NameTypeDescription
ptsPosition[]MultiPoint coordinates
options?objectOptional geometry options
options.id?number | stringOptional identifier to be assigned to the geometry instance.
options.properties?POptional data to be assigned to the geometry instance.

Returns

MultiPoint<P>

A new Geometry object

Examples