Skip to main content

point

Creates a Point geometry from a position.

Type Parameters

  • P

Parameters

NameTypeDescription
ptPositionPoint 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

Point<P>

A new point Geometry object

Examples