paddingWhileTracking

Sets the padding. This API can only be used in pair with camera modes other than CameraMode.NONE. If you are not using any of CameraMode modes, use one of MapboxMap.moveCamera, MapboxMap.easeCamera or MapboxMap.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.

fun paddingWhileTracking(padding: DoubleArray)

Sets the padding. This API can only be used in pair with camera modes other than CameraMode.NONE. If you are not using any of CameraMode modes, use one of MapboxMap.moveCamera, MapboxMap.easeCamera or MapboxMap.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

animationDuration

The padding animation duration.

padding

The desired padding.

fun paddingWhileTracking(padding: DoubleArray, animationDuration: Long)

Sets the padding. This API can only be used in pair with camera modes other than CameraMode.NONE. If you are not using any of CameraMode modes, use one of MapboxMap.moveCamera, MapboxMap.easeCamera or MapboxMap.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

animationDuration

The padding animation duration.

callback

The callback with finish/cancel information

padding

The desired padding.

fun paddingWhileTracking(padding: DoubleArray, animationDuration: Long, callback: CancelableCallback?)