Class MapCamera.State

java.lang.Object
com.here.sdk.mapview.MapCamera.State
Enclosing class:
MapCamera

public static final class MapCamera.State extends Object

Encapsulates state of the camera.

  • Field Details

    • targetCoordinates

      @NonNull public GeoCoordinates targetCoordinates

      Camera's 'LookAt' target position in geodetic space.

      Note: The altitude of the target point is ignored. Any subsequent camera updates and animations will consider the target point as being located on the ground.

    • orientationAtTarget

      @NonNull public GeoOrientation orientationAtTarget

      Camera's orientation at target point.

    • distanceToTargetInMeters

      public double distanceToTargetInMeters

      Distance from the camera to the target point in meters.

    • zoomLevel

      public double zoomLevel

      Zoom level corresponding to the current distance to target.

  • Constructor Details

    • State

      public State(@NonNull GeoCoordinates targetCoordinates, @NonNull GeoOrientation orientationAtTarget, double distanceToTargetInMeters, double zoomLevel)

      Creates a new instance.

      Parameters:
      targetCoordinates -

      Camera's 'LookAt' target position in geodetic space.

      Note: The altitude of the target point is ignored. Any subsequent camera updates and animations will consider the target point as being located on the ground.

      orientationAtTarget -

      Camera's orientation at target point.

      distanceToTargetInMeters -

      Distance from the camera to the target point in meters.

      zoomLevel -

      Zoom level corresponding to the current distance to target.