Documentation
Reference
2.1.50 (current version)
collection
interactivityModel
Interfaces

IBaseGeometry

Extends IEventEmitter.

Interface of a basic geometry.

Constructor | Fields | Methods

Constructor

IBaseGeometry()

Fields

NameTypeDescription
eventsIEventManager

Event manager.

Inherited from IEventEmitter.

Methods

NameReturnsDescription
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.