zoomToward

fun zoomToward(targetPoint: Point, factor: Double): Camera

Creates a copy of the camera with its location moved in the direction of a target point by the specified zoom factor.

Return

A copy of the camera with the position moved.

Since

200.1.0

Parameters

targetPoint

The 3D point the returned camera zooms towards. 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.

factor

The zoom factor the camera will be moved by based on the distance between the current camera location and the target point. For example, a factor of 2 will divide the distance in half for the new camera. Negative values will have no effect.

See also

Throws

if targetPoint is empty