rotate By
fun MapPluginExtensionsDelegate.rotateBy(first: ScreenCoordinate, second: ScreenCoordinate, animationOptions: MapAnimationOptions? = null): Cancelable
Content copied to clipboard
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 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
first
The first pointer to rotate on
second
The second pointer to rotate on
animation Options
Transition options (animation duration, listeners etc)
Throws
if gestures plugin was not added.