flyTo

fun MapPluginExtensionsDelegate.flyTo(cameraOptions: CameraOptions, animationOptions: MapAnimationOptions? = null, animatorListener: Animator.AnimatorListener? = null): Cancelable

Extension flyTo() function for MapPluginExtensionsDelegate Fly the map camera to a given camera options.

Camera plugin with id = Plugin.MAPBOX_CAMERA_PLUGIN_ID must be added while constructing MapView as part of MapInitOptions.plugins.

Return

Cancelable animator set object or empty cancelable object if associated MapView was destroyed.

Parameters

cameraOptions

The camera options to fly to

animationOptions

Transition options (animation duration, listeners etc)