DirectMapScalingEvent | iOS SDK | 2GIS Documentation
iOS SDK

DirectMapScalingEvent

The event of direct map scaling. Direct map control events are described in DirectMapControlBeginEvent.

Extends: InputEvent
public convenience init(
    zoomDelta: Float,
    timestamp: TimeInterval,
    scalingCenter: ScreenPoint? = nil
)
Parameters
zoomDelta
Float

The value by which the current zoom value will change.

timestamp
TimeInterval

Time of the system event generation.

scalingCenter
ScreenPoint?

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

Properties

The value by which the current scale value will change.

Point on the screen relative to which the map scales.