ZoomFollowSettings | iOS SDK | 2GIS Documentation

ZoomFollowSettings

Interface that allows you to control map zooming settings during guidance.

Extends: Hashable
public static func == (lhs: ZoomFollowSettings, rhs: ZoomFollowSettings) -> Bool

Returns a Boolean value indicating whether two values are equal.

Methods
Properties

A sequence of speed intervals and their corresponding scales. It is used to automatically change the scale in the navigator depending on the speed.

Duration of smooth zoom level change in guidance mode when there are no maneuvers ahead/behind at a sufficiently close distance, or on low-value roads.

Duration of smooth zoom level increase when approaching a maneuver.

Duration of smooth zoom level decrease after passing the maneuver.

Minimum speed in m/s at which duration of smooth zoom level change will be calculated taking into account not only proximity to the maneuver, but also taking into account the current speed. Must be at least 0.1 m/s, values less than that will be ignored.

Acceleration coefficient of the zoom level increase animation when approaching the maneuver. Must be at least 1, values less than that will be ignored.

Distance to the maneuver, at reaching which the animation of the smooth zoom level increase must be completed, so that during the maneuver the zoom does not change. For example, if the maneuver is 300 m, then the animation with the smooth zoom level increase must be completed 50 m before the maneuver. Must be at least 1 m, values less than that will be ignored.

Minimum Animation Time. Used to prevent sudden changes in the zoom level during the animation. Must be at least 200, values less than that will be ignored.