paddingWhileTracking

open fun paddingWhileTracking(padding: Array<Double>)

Sets the padding. 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 padding change is requested, the call is going to be ignored. Use CameraTransitionListener to chain the animations, or provide the padding as a camera change argument.

Parameters

padding

The desired padding.


open fun paddingWhileTracking(padding: Array<Double>, animationDuration: Long)

Sets the padding. 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 padding change is requested, the call is going to be ignored. Use CameraTransitionListener to chain the animations, or provide the padding as a camera change argument.

Parameters

padding

The desired padding.

animationDuration

The padding animation duration.


open fun paddingWhileTracking(padding: Array<Double>, animationDuration: Long, @Nullable callback: MapLibreMap.CancelableCallback)

Sets the padding. 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 padding change is requested, the call is going to be ignored. Use CameraTransitionListener to chain the animations, or provide the padding as a camera change argument.

Parameters

padding

The desired padding.

animationDuration

The padding animation duration.

callback

The callback with finish/cancel information