GoToAnimator

open class GoToAnimator(engine: WorldWind)

Incrementally and smoothly moves the Camera to a specified position.

Constructors

Link copied to clipboard
constructor(engine: WorldWind)

Properties

Link copied to clipboard

The frequency in milliseconds at which to animate the position change.

Link copied to clipboard

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.

Functions

Link copied to clipboard
fun cancel()

Stop the current animation.

Link copied to clipboard
open fun goTo(position: Location, completionCallback: (GoToAnimator) -> Unit? = null)

Moves the camera to a specified look at location or position.