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 point location the new camera zooms towards.

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