Class: ViewerInfo

Mapspace.threed.action. ViewerInfo

An action for a Mapspace.control.Label that show different information about some viewer properties or status. Some of this information can be LiDAR project name, date, FOV, pitch, yaw, zoom, mouse position, etc. By default, mouse coordinates are in the view projection, but can be in any supported projection. By default the control is shown in the top right corner of the viewer, but this can be changed by using the css selector of the label.


new ViewerInfo( [options])

Parameters:
Name Type Argument Description
options Mapspace.threed.action.ViewerInfoOptions <optional>

Options.

Source:
mapspace-threed/action/viewerinfo.js
Fires:
  • ol.Object.Event#event:change:projection

Extends

Members


<nullable> control :Mapspace.control.Control

The control this action is attached to.

Inherited From:
Source:
mapspace/actions/action.js

<nullable> viewer :Mapspace.Viewer

This is the viewer this action will be tied to.

Inherited From:
Source:
mapspace/actions/action.js

Methods


getProjection()

Return the projection that is used to report coordinates.

Source:
mapspace-threed/action/viewerinfo.js
Returns:

The projection to report coordinates.

Type
ol.proj.Projection | undefined

handleOutputProjectionChanged()

Set output projection system for viewer info (and another tools).

Source:
mapspace-threed/action/viewerinfo.js

is2DViewer()

Return true if current viewer of the action is a 2D viewer.

Inherited From:
Source:
mapspace/actions/action.js
Returns:
Type
boolean

is3DViewer()

Return true if current viewer of the action is a 3D viewer.

Inherited From:
Source:
mapspace/actions/action.js
Returns:
Type
boolean

isGlobalViewer()

Return true if current viewer of the action is a Mapspace.global.Viewer.

Inherited From:
Source:
mapspace/actions/action.js
Returns:
Type
boolean

isObliqueViewer()

Return true if current viewer of the action is a Mapspace.oblique.Viewer.

Inherited From:
Source:
mapspace/actions/action.js
Returns:
Type
boolean

isObliqueViewerVisible()

Return true if current viewer of the action is a Mapspace.oblique.Viewer or a Mapspace.global.Viewer in Oblique mode.

Inherited From:
Source:
mapspace/actions/action.js
Returns:
Type
boolean

isOrthoViewer()

Return true if current viewer of the action is a Mapspace.ortho.Viewer.

Inherited From:
Source:
mapspace/actions/action.js
Returns:
Type
boolean

isOrthoViewerVisible()

Return true if current viewer of the action is a Mapspace.ortho.Viewer or a Mapspace.global.Viewer in Ortho mode.

Inherited From:
Source:
mapspace/actions/action.js
Returns:
Type
boolean

isProfile3dViewer()

Return true if current viewer of the action is a Mapspace.profile3d.Viewer.

Inherited From:
Source:
mapspace/actions/action.js
Returns:
Type
boolean

isStreetViewer()

Return true if current viewer of the action is a Mapspace.street.Viewer.

Inherited From:
Source:
mapspace/actions/action.js
Returns:
Type
boolean

isTableViewer()

Return true if current viewer of the action is a Mapspace.table.Viewer.

Inherited From:
Source:
mapspace/actions/action.js
Returns:
Type
boolean

isThreedViewer()

Return true if current viewer of the action is a Mapspace.threed.Viewer.

Inherited From:
Source:
mapspace/actions/action.js
Returns:
Type
boolean

setProjection(projection)

Set the projection that is used to report coordinates.

Parameters:
Name Type Description
projection ol.proj.Projection

The projection to report coordinates.

Source:
mapspace-threed/action/viewerinfo.js

update()

Updates the initial infoValues.

Source:
mapspace-threed/action/viewerinfo.js