Skip to main content
Version: 3.x

Class: GeomapTool

@cognite/reveal/tools.GeomapTool

The GeomapTool is a geolocation for the models and allow the user to place them on the maps.

Hierarchy​

Constructors​

constructor​

• new GeomapTool(viewer, config)

Parameters​

NameType
viewerCognite3DViewer
configMapConfig

Overrides​

Cognite3DViewerToolBase.constructor

Defined in​

packages/tools/src/Geomap/GeomapTool.ts:19

Methods​

dispose​

▸ dispose(): void

Disposes the element and triggeres the 'disposed' event before clearing the list of dipose-listeners.

Returns​

void

Overrides​

Cognite3DViewerToolBase.dispose

Defined in​

packages/tools/src/Geomap/GeomapTool.ts:36


latLongToWorldCoordinates​

▸ latLongToWorldCoordinates(latLong): Object

Converts Latitude & Longitude into Vector2 World coordinates on the Map

Parameters​

NameTypeDescription
latLongLatLongPositionLatitude & Longitude

Returns​

Object

NameType
xnumber
ynumber

Defined in​

packages/tools/src/Geomap/GeomapTool.ts:32


off​

▸ off(event, handler): void

Unregisters an event handler for the 'disposed'-event.

Parameters​

NameType
event"disposed"
handler() => void

Returns​

void

Inherited from​

Cognite3DViewerToolBase.off

Defined in​

packages/tools/src/Cognite3DViewerToolBase.ts:37