scaleBy

fun scaleBy(scaleFactor: Double): CameraOptions

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

Return

CameraOptions for the transition.

See also

to read more about the zoom attribute.

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).


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.

See also

to read more about the zoom attribute.

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.