createCenterAnimator

abstract fun createCenterAnimator(options: CameraAnimatorOptions<Point>, useShortestPath: Boolean, block: ValueAnimator.() -> Unit? = null): ValueAnimator

Create CameraCenterAnimator. Current map camera option will be applied on animation start if not specified explicitly with options.startValue.

Parameters

options

animator options object to set targets and other non mandatory options

useShortestPath

if set to True, shortest path will be applied when the start and end camera is across the antimeridian, for example from -170 to 170 longitude.

block

optional block to apply any ValueAnimator parameters


open fun createCenterAnimator(options: CameraAnimatorOptions<Point>, block: ValueAnimator.() -> Unit? = null): ValueAnimator

Deprecated

createCenterAnimator(options, block) is deprecated, please use createCenterAnimator(options, useShortestPath, block) instead.

Replace with

createCenterAnimator(options, useShortestPath, block)

Create CameraCenterAnimator. Current map camera option will be applied on animation start if not specified explicitly with options.startValue.

Parameters

options

animator options object to set targets and other non mandatory options

block

optional block to apply any ValueAnimator parameters