Class MapCamera.State

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

    public static final class MapCamera.State
    extends java.lang.Object

    Encapsulates state of the camera.

    • Constructor Summary

      Constructors 
      Constructor Description
      State​(GeoCoordinates targetCoordinates, GeoOrientation orientationAtTarget, double distanceToTargetInMeters, double zoomLevel)
      Creates a new instance.
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • 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 Detail

      • 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.