DirectMapRotationEvent | iOS SDK | 2GIS Documentation
iOS SDK

DirectMapRotationEvent

Direct map rotation event. The events of direct map control are described in 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

Changes the rotation angle of the map.

Point on the screen relative to which the map rotates.