rotateBy

fun rotateBy(first: ScreenCoordinate, second: ScreenCoordinate, animationOptions: MapAnimationOptions? = null, completionListener: CompletionListener? = null)

Rotate the map using two screen coordinates as rotation pivots, with optional animation.

Parameters

first

The first pointer to rotate on

second

The second pointer to rotate on

animationOptions

Transition options (animation duration, listeners etc)

completionListener

the optional CompletionListener to observe the completion of the transition