goTo

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

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

Parameters

position

The Location or Position to move the camera 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 camera.

completionCallback

If not null, specifies a function to call when the animation completes. The completion callback is called with a single argument, this animator.