DirectMapRotationEvent | iOS SDK | 2GIS Documentation

DirectMapRotationEvent

Direct map rotation event. Events of direct map control are described at DirectMapControlBeginEvent.

Extends: InputEvent
public convenience init(
    bearingDelta: Bearing,
    timestamp: TimeInterval,
    rotationCenter: ScreenPoint? = nil
)
Parameters
bearingDelta
Bearing

Change of the map rotation angle, in degrees. Positive values correspond to the direction of rotation counterclockwise

timestamp
TimeInterval

Time of the system event generation.

rotationCenter
ScreenPoint?

Point on the screen relative to which the map rotates. If not set, rotation is done relative to the map position point.

Properties

Changing the rotation angle of the map.

Point on the screen relative to which the map rotates.