MapCamera.State (API Reference)
Class MapCamera.State
- Enclosing class:
- MapCamera
Encapsulates state of the camera.
-
Field Summary
FieldsModifier and TypeFieldDescriptiondoubleDistance from the camera to the target point in meters.Camera's orientation at target point.Camera's 'LookAt' target position in geodetic space.doubleZoom level corresponding to the current distance to target. -
Constructor Summary
ConstructorsConstructorDescriptionState(GeoCoordinates targetCoordinates, GeoOrientation orientationAtTarget, double distanceToTargetInMeters, double zoomLevel) Creates a new instance. -
Method Summary
-
Field Details
-
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
public double distanceToTargetInMetersDistance from the camera to the target point in meters.
-
zoomLevel
public double zoomLevelZoom 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.
-