CameraController

interface CameraController

Controls camera-specific features on the map. Allows camera management and user interactions with the camera.

Important: This is a Public Preview API. It may be changed or removed at any time.

Functions

Link copied to clipboard
abstract fun addOnCameraChangeListener(listener: OnCameraChangeListener)

Registers the OnCameraChangeListener that will be notified about any change of the camera properties.

Link copied to clipboard
abstract fun addOnCameraSteadyListener(listener: OnCameraSteadyListener)

Registers the OnCameraSteadyListener that will be notified when the camera becomes steady after applying changes on its properties.

Link copied to clipboard
abstract fun animateCamera(options: CameraOptions, animationDuration: AnimationDuration? = AnimationDuration.createDefault())
abstract fun animateCamera(    options: CameraOptions,     animationDuration: AnimationDuration? = null,     actionCallback: OnCancellableActionCallback)

Moves the camera according to the given CameraOptions and animates the transition.

Link copied to clipboard
abstract fun cameraPosition(): CameraPosition

Provides the current CameraPosition.

Link copied to clipboard
abstract fun cameraTrackingMode(): CameraTrackingMode

Provides the current CameraTrackingMode.

Link copied to clipboard
abstract fun changeCameraTrackingMode(trackingMode: CameraTrackingMode)

Changes the CameraTrackingMode.

Link copied to clipboard
abstract fun moveCamera(options: CameraOptions)

Immediately moves camera according to the given CameraOptions.

Link copied to clipboard
abstract fun removeOnCameraChangeListener(listener: OnCameraChangeListener)
Link copied to clipboard
abstract fun removeOnCameraSteadyListener(listener: OnCameraSteadyListener)

Properties

Link copied to clipboard
abstract val maxZoom: Double

Provides a maximum available value for the CameraOptions.zoom attribute.

Link copied to clipboard
abstract val minZoom: Double

Provides a minimum available value for the CameraOptions.zoom attribute.

Inheritors

Link copied to clipboard