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
-
↳
GeomapTool
Constructors
constructor
• new GeomapTool(viewer
, config
)
Parameters
Name | Type |
---|---|
viewer | Cognite3DViewer |
config | MapConfig |
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
Name | Type | Description |
---|---|---|
latLong | LatLongPosition | Latitude & Longitude |
Returns
Object
Name | Type |
---|---|
x | number |
y | number |
Defined in
packages/tools/src/Geomap/GeomapTool.ts:32
off
▸ off(event
, handler
): void
Unregisters an event handler for the 'disposed'-event.
Parameters
Name | Type |
---|---|
event | "disposed" |
handler | () => void |
Returns
void