IBaseGeometry

Extends IEventEmitter.

Interface of a basic geometry.

Constructor | Fields | Methods

Constructor

IBaseGeometry()

Fields

Name

Type

Description

events

IEventManager

Event manager.

Inherited from IEventEmitter.

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.

getType()

String

Returns ID of the geometry type.

Methods details

getBounds

{Number[][]|null} getBounds()

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.

getType

{String} getType()

Returns ID of the geometry type.