ru.dgis.sdk.map.DirectMapRotationEvent | Android SDK | 2GIS Documentation

DirectMapRotationEvent

Event of the direct map rotation. Direct map control events are described in DirectMapControlBeginEvent.

DirectMapRotationEvent(
	bearingDelta: Bearing,
	timestamp: Duration,
	rotationCenter: ScreenPoint? = null
)
Parameters
bearingDelta
Bearing

Changes the angle of the map rotation, in degrees. Positive values correspond to the direction of counter-clockwise rotation.

timestamp
Duration

Time of the system event generation.

rotationCenter
ScreenPoint?

Point on the screen around which the map rotates. If no point is specified, the rotation is done relatively to the map position point.

Returns
Properties

Change of the map rotation angle.

Point on the screen around which the map rotates.