zoom

fun zoom(scaleFactor: Float, focusX: Float, focusY: Float)(source)

Applies a zoom gesture centered on a specific screen point.

Adjusts the zoom level and map center so that the content under the focus point remains stationary during the zoom.

Parameters

scaleFactor

The zoom scale factor (>1 zooms in, <1 zooms out)

focusX

The screen X coordinate of the zoom center

focusY

The screen Y coordinate of the zoom center