setRotation

fun setRotation(rotation: Double, callback: (MPIError?) -> Unit?)

Sets the current camera rotation of MPIMapView

Return

Unit

Parameters

rotation

The angle in degrees relative to north to set the current camera rotation to

callback

Callback for when the camera rotation has been set, contains a MPIError as the first parameter


suspend fun setRotation(rotation: Double): Double

Sets the current camera rotation of MPIMapView

Return

the Double value that the camera rotation was set to

Parameters

rotation

The angle in degrees relative to north to set the current camera rotation to