moveToward

fun moveToward(targetPoint: Point, distance: Double): Camera

Creates a copy of the camera with the camera moved in the direction of a target point by the specified distance.

Return

A copy of the camera with the position moved

Since

200.1.0

Parameters

targetPoint

The point location towards which the camera will move. The returned camera is in the same spatial reference as the source camera. If the spatial reference of the point is not specified, it is assumed to be the spatial reference of the camera.

distance

The distance in meters the returned camera should move towards the target point.

See also

Throws

if targetPoint is empty