Class TrackingCameraBehavior.SpeedBasedZoomPolicyOptions
- Enclosing class:
- TrackingCameraBehavior
Configuration for computing zoom levels from speed thresholds defined per road classification.
For correct default initialization, use TrackingCameraBehavior.defaultSpeedBasedZoomPolicyOptions().
-
Field Summary
FieldsModifier and TypeFieldDescriptionDefault zoom returned when the speed or road classification is missing or unmapped.Minimum time interval that must pass before the zoom level is allowed to switch to a new speed threshold.Defines, per road classification, how the zoom level should change in response to different vehicle speeds. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
defaultZoom
Default zoom returned when the speed or road classification is missing or unmapped. Defaults to a
MapMeasurewith kindMapMeasure.Kind.ZOOM_LEVELand value 19.0. -
delayBetweenThresholdChanges
Minimum time interval that must pass before the zoom level is allowed to switch to a new speed threshold. If
TrackingCameraBehavior.defaultSpeedBasedZoomPolicyOptions()is not used forTrackingCameraBehavior.SpeedBasedZoomPolicyOptions, it will benull. -
roadClassificationToSpeedThreshold
@NonNull public Map<RoadClassification,List<TrackingCameraBehavior.SpeedThreshold>> roadClassificationToSpeedThresholdDefines, per road classification, how the zoom level should change in response to different vehicle speeds. If
TrackingCameraBehavior.defaultSpeedBasedZoomPolicyOptions()is not used forTrackingCameraBehavior.SpeedBasedZoomPolicyOptions, it will be an empty map.
-
-
Constructor Details
-
SpeedBasedZoomPolicyOptions
public SpeedBasedZoomPolicyOptions()Creates a new instance.
Note: This is a beta feature; there maybe bugs and unexpected behavior. Related API's are subject to change without a deprecation process.
-