ScaleMapEvent | iOS SDK | 2GIS Documentation

ScaleMapEvent

Map zoom event.

Extends: Event
public convenience init(
    zoomDelta: Float,
    scalingCenter: ScreenPoint? = nil
)

Zoom event builder.

Parameters
zoomDelta
Float

The value by which the current zoom value will change.

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.