Package com.navmii.sdk.map
Class CameraPosition
- java.lang.Object
-
- com.navmii.sdk.map.CameraPosition
-
public final class CameraPosition extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CameraPosition.Builder
-
Field Summary
Fields Modifier and Type Field Description static float
KEEP_HEADING_UNCHANGED
The special value that can be passed toCameraPosition.Builder.setHeading(float)
in order to keep the heading unchanged.static MapCoordinates
KEEP_TARGET_LOCATION_UNCHANGED
The special value that can be passed toCameraPosition.Builder.setTargetLocation(MapCoordinates)
in order to keep the target location unchanged.static float
KEEP_TILT_UNCHANGED
The special value that can be passed toCameraPosition.Builder.setTilt(float)
in order to keep the tilt unchanged.static float
KEEP_ZOOM_UNCHANGED
The special value that can be passed toCameraPosition.Builder.setZoom(float)
in order to keep the zoom unchanged.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description float
getHeading()
Returns the heading of the camera orKEEP_HEADING_UNCHANGED
.MapCoordinates
getTargetLocation()
Returns the target location of the camera orKEEP_TARGET_LOCATION_UNCHANGED
.float
getTilt()
Returns the tilt of the camera orKEEP_TILT_UNCHANGED
.float
getZoom()
Returns the zoom level of the camera orKEEP_ZOOM_UNCHANGED
.
-
-
-
Field Detail
-
KEEP_TARGET_LOCATION_UNCHANGED
public static final MapCoordinates KEEP_TARGET_LOCATION_UNCHANGED
The special value that can be passed toCameraPosition.Builder.setTargetLocation(MapCoordinates)
in order to keep the target location unchanged.
-
KEEP_HEADING_UNCHANGED
public static final float KEEP_HEADING_UNCHANGED
The special value that can be passed toCameraPosition.Builder.setHeading(float)
in order to keep the heading unchanged.- See Also:
- Constant Field Values
-
KEEP_TILT_UNCHANGED
public static final float KEEP_TILT_UNCHANGED
The special value that can be passed toCameraPosition.Builder.setTilt(float)
in order to keep the tilt unchanged.- See Also:
- Constant Field Values
-
KEEP_ZOOM_UNCHANGED
public static final float KEEP_ZOOM_UNCHANGED
The special value that can be passed toCameraPosition.Builder.setZoom(float)
in order to keep the zoom unchanged.- See Also:
- Constant Field Values
-
-
Method Detail
-
getTargetLocation
public MapCoordinates getTargetLocation()
Returns the target location of the camera orKEEP_TARGET_LOCATION_UNCHANGED
.Note: Positions returned from
MapView.CameraController.getCameraPosition()
will always have a valid target location.- Returns:
- The target location or
KEEP_TARGET_LOCATION_UNCHANGED
.
-
getHeading
public float getHeading()
Returns the heading of the camera orKEEP_HEADING_UNCHANGED
.Note: Positions returned from
MapView.CameraController.getCameraPosition()
will always have a valid heading.- Returns:
- The heading of the camera in degrees or
KEEP_HEADING_UNCHANGED
.
-
getTilt
public float getTilt()
Returns the tilt of the camera orKEEP_TILT_UNCHANGED
.Note: Positions returned from
MapView.CameraController.getCameraPosition()
will always have a valid tilt.- Returns:
- The tilt of the camera in degrees or
KEEP_TILT_UNCHANGED
.
-
getZoom
public float getZoom()
Returns the zoom level of the camera orKEEP_ZOOM_UNCHANGED
.Note: Positions returned from
MapView.CameraController.getCameraPosition()
will always have a valid zoom.- Returns:
- The zoom level or
KEEP_ZOOM_UNCHANGED
.
-
-