ZoomControl

class ZoomControl : Control, IZoomControl

Use this control to set camera zoom by ratio.

Since

1.0.0

Constructors

Link copied to clipboard

Functions

Link copied to clipboard
open override fun getZoomRatio(): Float

Get current zoom ratio.

Link copied to clipboard
open override fun setZoomRatio(zoomRatio: Float)

Set zoom by ratio. If the ratio is smaller than minimum zoom ratio or larger than maximum available zoom ratio, the ratio will be revised to the available range.