rotateBy

fun rotateBy(degrees: Float, focusX: Float, focusY: Float)(source)

Turns the map by degrees around a screen point, e.g. the fingers of a rotate gesture, so the location at that point stays there. Positive degrees turn the map clockwise on the screen, which lowers the bearing.

Parameters

degrees

The turn of the map content on the screen, clockwise in degrees

focusX

The x coordinate of the point in screen pixels

focusY

The y coordinate of the point in screen pixels