scaleBy

fun scaleBy(scaleFactor: Double): CameraOptions

Returns the CameraOptions that adjust the camera zoom level by the given scaleFactor.

Return

CameraOptions for the transition.

Parameters

scaleFactor

The scaling factor from the previous state to the current state during the scale event. This value is defined as (current state) / (previous state).

See also

to read more about the zoom attribute.


fun scaleBy(scaleFactor: Double, focus: Point): CameraOptions

Returns the CameraOptions that adjust the camera zoom level by the given scaleFactor and moves the camera towards the focus.

Return

CameraOptions for the transition.

Parameters

scaleFactor

The scaling factor from the previous state to the current state during the scale event. This value is defined as (current state) / (previous state).

focus

The coordinate of the focal point in pixels.

See also

to read more about the zoom attribute.