rotateBy

fun MapPluginExtensionsDelegate.rotateBy(first: ScreenCoordinate, second: ScreenCoordinate, animationOptions: MapAnimationOptions? = null): Cancelable

Extension rotateBy() function for MapPluginExtensionsDelegate Rotate the map by with optional animation.

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

first

The first pointer to rotate on

second

The second pointer to rotate on

animationOptions

Transition options (animation duration, listeners etc)