Class: ViewerInfo

bu.ortho.action. ViewerInfo

An action for a bu.control.Label show different information about some viewer properties or status. Some of this information can be map rotation, resolution, 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 map, but this can be changed by using the css selector of the label.


new ViewerInfo( [options])

Parameters:
Name Type Argument Description
options bu.ortho.action.ViewerInfoOptions <optional>

Options.

Source:
bu-ortho/actions/viewerinfo.js
Fires:
  • ol.Object.Event#event:change:projection

Extends

Members


control :bu.control.Control

The control this action is attached to.

Type:
Inherited From:
Source:
bu/actions/action.js

viewer :bu.Viewer

This is the viewer this action will be tied to.

Type:
Inherited From:
Source:
bu/actions/action.js

Methods


getProjection()

Return the projection that is used to report the mouse position.

Source:
bu-ortho/actions/viewerinfo.js
Returns:

The projection to report mouse position in.

Type
ol.proj.Projection | undefined

setProjection(projection)

Set the projection that is used to report the mouse position.

Parameters:
Name Type Description
projection ol.proj.Projection

The projection to report mouse position in.

Source:
bu-ortho/actions/viewerinfo.js