ManeuverZoomRange
public struct ManeuverZoomRange
Defines the bounds within which the zoom level is constrained when approaching a maneuver.
Used as part of TrackingCameraBehavior.ManeuverRuleOptions.
-
Minimum camera zoom. Valid range is 0.0 to 22.0. Defaults to a
MapMeasurewith kindMapMeasure.Kind.zoomLeveland value 4.0.Declaration
Swift
public var minZoom: MapMeasure -
Maximum camera zoom. Valid range is 0.0 to 22.0. Must be greater than or equal to
TrackingCameraBehavior.ManeuverZoomRange.minZoom. Defaults to aMapMeasurewith kindMapMeasure.Kind.zoomLeveland value 20.0.Declaration
Swift
public var maxZoom: MapMeasure -
Creates a new instance.
Note: This is a beta release of this feature, so there could be a few bugs and unexpected behaviors. Related APIs may change for new releases without a deprecation process.
Declaration
Swift
public init(minZoom: MapMeasure = MapMeasure(kind: MapMeasure.Kind.zoomLevel, value: 4.0), maxZoom: MapMeasure = MapMeasure(kind: MapMeasure.Kind.zoomLevel, value: 20.0))