Class: Controls

Controls(options)

Constructs a controls in the top right corner of the given div. Controls zoom, rotation, heading and exaggeration.

Constructor

new Controls(options)

Parameters:
Name Type Description
options Object
Properties
Name Type Attributes Description
worldWindow WorldWindow The World Window associated with these controls.
mapContainerId string Id of the container to draw controls into.
classes string <optional>
Optional parameter. List of classes that will be added to the top container for controls.
Source:
Throws:
If the specified world window is null or undefined or if the Id of the container is null.
Type
ArgumentError

Members

exaggerationIncrement :Number

The incremental vertical exaggeration to apply each cycle.
Type:
  • Number
Default Value:
  • 0.01
Source:

headingIncrement :Number

The incremental amount to increase or decrease the heading each cycle, in degrees.
Type:
  • Number
Default Value:
  • 1.0
Source:

tiltIncrement :Number

The incremental amount to increase or decrease the tilt each cycle, in degrees.
Type:
  • Number
Source:

(readonly) wwd :WorldWindow

The World Window associated with controls.
Type:
  • WorldWindow
Source:

zoomIncrement :Number

The incremental amount to increase or decrease the eye distance (for zoom) each cycle.
Type:
  • Number
Default Value:
  • 0.04 (4%)
Source:

Methods

handleManualRedraw(e)

When user changes heading by the mouse display it properly on the Control panel as well.
Parameters:
Name Type Description
e Event Event on moving the mouse with right button clicked
Source:

handleOperationEnd(e)

Stops the operation from further repeating.
Parameters:
Name Type Description
e Event Event starting the mouse event.
Source: