ZoomGestureController

interface ZoomGestureController extends GestureController

A ZoomGestureController is a GestureController that can modify a CameraController's zoom via a native pinch-to-zoom gesture.

Properties

controller

controller: CameraController | undefined

Gets or sets the CameraController this GestureController should control.

Inherited from

GestureController.controller

Methods

addOnZoomChangedListener(...)

addOnZoomChangedListener(onZoomChanged: (zoom: number) => void): ListenerSubscription

Adds a listener that is called whenever this native pinch gesture changes the target zoom factor.

The listener can be called many times during one pinch gesture. Call remove() on the returned subscription to stop receiving updates.

On this page