ZoomPolicy
public class ZoomPolicy
extension TrackingCameraBehavior.ZoomPolicy: NativeBase
extension TrackingCameraBehavior.ZoomPolicy: Hashable
Defines zoom behavior in different policy settings.
Note: This is a beta feature; there maybe bugs and unexpected behavior. Related API’s are subject to change without a deprecation process.
-
Creates a zoom policy that always returns a fixed zoom level.
Declaration
Swift
public static func makeFixedZoomPolicy(zoomLevel: Double) -> TrackingCameraBehavior.ZoomPolicyParameters
zoomLevelThe constant zoom level that the policy will return.
Return Value
The ZoomPolicy instance.
-
Instantiates a zoom policy that selects zoom levels based on functional road class.
Declaration
Swift
public static func makeFunctionalRoadClassZoomPolicy(options: TrackingCameraBehavior.FunctionalRoadClassZoomPolicyOptions) -> TrackingCameraBehavior.ZoomPolicyParameters
optionsConfiguration mapping road classes to zoom levels, including a default fallback.
Return Value
The ZoomPolicy instance.
-
Instantiates a zoom policy driven by speed thresholds defined per road classification.
Declaration
Swift
public static func makeSpeedBasedZoomPolicy(options: TrackingCameraBehavior.SpeedBasedZoomPolicyOptions) -> TrackingCameraBehavior.ZoomPolicyParameters
optionsConfiguration describing the speed thresholds mapping to road classifications.
Return Value
The ZoomPolicy instance.