Class: GoToAnimator

GoToAnimator(worldWindow)

Incrementally and smoothly moves a Navigator to a specified position.

Constructor

new GoToAnimator(worldWindow)

Constructs a GoTo animator.
Parameters:
Name Type Description
worldWindow WorldWindow The WorldWindow in which to perform the animation.
Source:
Throws:
If the specified WorldWindow is null or undefined.
Type
ArgumentError

Members

animationFrequency :Number

The frequency in milliseconds at which to animate the position change.
Type:
  • Number
Default Value:
  • 20
Source:

(readonly) cancelled :Boolean

Indicates whether the current or most recent animation has been cancelled. Use the cancel() function to cancel an animation.
Type:
  • Boolean
Default Value:
  • false
Source:

travelTime :Number

The animation's duration, in milliseconds. When the distance is short, less than twice the viewport size, the travel time is reduced proportionally to the distance to travel. It therefore takes less time to move shorter distances.
Type:
  • Number
Default Value:
  • 3000
Source:

(readonly) wwd :WorldWindow

The WorldWindow associated with this animator.
Type:
Source:

Methods

goTo(position, completionCallback)

Moves the navigator to a specified location or position.
Parameters:
Name Type Description
position Location | Position The location or position to move the navigator to. If this argument contains an "altitude" property, as Position does, the end point of the navigation is at the specified altitude. Otherwise the end point is at the current altitude of the navigator.
completionCallback function If not null or undefined, specifies a function to call when the animation completes. The completion callback is called with a single argument, this animator.
Source:
Throws:
If the specified location or position is null or undefined.
Type
ArgumentError