tiltWhileTracking

open fun tiltWhileTracking(tilt: Double, animationDuration: Long, @Nullable callback: MapLibreMap.CancelableCallback)

Tilts the camera. This API can only be used in pair with camera modes other than NONE. If you are not using any of CameraMode modes, use one of moveCamera, easeCamera or animateCamera instead.

If the camera is transitioning when the tilt change is requested, the call is going to be ignored. Use CameraTransitionListener to chain the animations, or provide the tilt as a camera change argument.

Parameters

tilt

The desired camera tilt.

animationDuration

The tilt animation duration.

callback

The callback with finish/cancel information


open fun tiltWhileTracking(tilt: Double, animationDuration: Long)

Tilts the camera. This API can only be used in pair with camera modes other than NONE. If you are not using any of CameraMode modes, use one of moveCamera, easeCamera or animateCamera instead.

If the camera is transitioning when the tilt change is requested, the call is going to be ignored. Use CameraTransitionListener to chain the animations, or provide the tilt as a camera change argument.

Parameters

tilt

The desired camera tilt.

animationDuration

The tilt animation duration.


open fun tiltWhileTracking(tilt: Double)

Tilts the camera. This API can only be used in pair with camera modes other than NONE. If you are not using any of CameraMode modes, use one of moveCamera, easeCamera or animateCamera instead.

If the camera is transitioning when the tilt change is requested, the call is going to be ignored. Use CameraTransitionListener to chain the animations, or provide the tilt as a camera change argument.

Parameters

tilt

The desired camera tilt.