Class TrackingCameraBehavior.ZoomPolicy

java.lang.Object
com.here.NativeBase
com.here.sdk.navigation.TrackingCameraBehavior.ZoomPolicy
Enclosing class:
TrackingCameraBehavior

public static final class TrackingCameraBehavior.ZoomPolicy extends NativeBase

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.

  • Method Details

    • makeFixedZoomPolicy

      @NonNull public static TrackingCameraBehavior.ZoomPolicy makeFixedZoomPolicy(double zoomLevel)

      Creates a zoom policy that always returns a fixed zoom level.

      Parameters:
      zoomLevel -

      The constant zoom level that the policy will return.

      Returns:

      The ZoomPolicy instance.

    • makeFunctionalRoadClassZoomPolicy

      @NonNull public static TrackingCameraBehavior.ZoomPolicy makeFunctionalRoadClassZoomPolicy(@NonNull TrackingCameraBehavior.FunctionalRoadClassZoomPolicyOptions options)

      Instantiates a zoom policy that selects zoom levels based on functional road class.

      Parameters:
      options -

      Configuration mapping road classes to zoom levels, including a default fallback.

      Returns:

      The ZoomPolicy instance.

    • makeSpeedBasedZoomPolicy

      @NonNull public static TrackingCameraBehavior.ZoomPolicy makeSpeedBasedZoomPolicy(@NonNull TrackingCameraBehavior.SpeedBasedZoomPolicyOptions options)

      Instantiates a zoom policy driven by speed thresholds defined per road classification.

      Parameters:
      options -

      Configuration describing the speed thresholds mapping to road classifications.

      Returns:

      The ZoomPolicy instance.