IBasePointGeometry

Extends IBaseGeometry, IPointGeometryAccess.

Interface for the "Point" geometry.

Constructor | Fields | Events | Methods

Constructor

IBasePointGeometry()

Fields

Name

Type

Description

events

IEventManager

Event manager.

Inherited from IEventEmitter.

Events

Name

Description

change

Changed coordinates. Instance of the Event class. Names of fields that are available via the Event.get method:

  • oldCoordinates - Old coordinates
  • newCoordinates - New coordinates.

Inherited from IPointGeometryAccess.

Methods

Name

Returns

Description

getBounds()

Number[][]|null

Returns coordinates of the two opposite corners of the area that surrounds the geometry. The first item in the array is the corner with the smallest coordinate values relative to the rest of the points in the area; the second item is the corner with the largest coordinate values.

Inherited from IBaseGeometry.

getCoordinates()

Number[]|null

Returns coordinates of a point.

Inherited from IPointGeometryAccess.

getType()

String

Returns the "Point" string.

setCoordinates(coordinates)

IPointGeometryAccess

Sets coordinates of a point.

Inherited from IPointGeometryAccess.

Methods details

getType

{String} getType()

Returns the "Point" string.