fly To
fun MapPluginExtensionsDelegate.flyTo(cameraOptions: CameraOptions, animationOptions: MapAnimationOptions? = null): Cancelable
Content copied to clipboard
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 com.mapbox.maps.MapView as part of com.mapbox.maps.MapInitOptions.plugins.
Return
Cancelable animator set object or null if associated map object was garbage collected.
See also
com. mapbox. maps. Map Init Options
Parameters
camera Options
The camera options to fly to
animation Options
Transition options (animation duration, listeners etc)
Throws
if gestures plugin was not added.