java.lang.Object | |
↳ | com.amazon.geo.mapsv2.model.CameraPosition |
Immutable class representing the position of the camera. Pass this object to
CameraUpdateFactory.newCameraPosition(CameraPosition)
to create a
CameraUpdate
you can use to move the map camera
to a new position.
To get the current camera position, call
AmazonMap.getCameraPosition
.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
CameraPosition.Builder | Class for building CameraPosition objects. |
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
bearing | The bearing (rotation) of the camera, in degrees clockwise from north. | ||||||||||
target | The LatLng representing the geographic point on the earth over
which the camera is centered. |
||||||||||
tilt | The delta of the angle of the camera directly from directly facing the Earth. | ||||||||||
zoom | The distance of the camera from the earth, in zoom level units. |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a new
CameraPosition object using the specified values. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a new
CameraPosition.Builder object. | |||||||||||
Creates a new CameraPosition.Builder object populated with the values
from the provided
CameraPosition . | |||||||||||
Creates a camera position from an
AttributeSet . | |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
The bearing (rotation) of the camera, in degrees clockwise from north.
The LatLng
representing the geographic point on the earth over
which the camera is centered.
The delta of the angle of the camera directly from directly facing the Earth.
The distance of the camera from the earth, in zoom level units.
Creates a new CameraPosition
object using the specified values.
target | The LatLng representing the geographic position of the
camera. |
---|---|
zoom | The zoom level of the camera in zoom level units. |
tilt | The tilt of the camera (delta from directly facing the Earth) |
bearing | The direction of the camera, in degrees clockwise from north. |
Creates a new CameraPosition.Builder
object. Use this to create a
new CameraPosition
.
CameraPosition.Builder
.
Creates a new CameraPosition.Builder object populated with the values
from the provided CameraPosition
.
camera | A CameraPosition with the initial values for this
builder. |
---|
CameraPosition.Builder
.
Creates a camera position from an AttributeSet
.
context | Context for the AttributeSet . |
---|---|
attrs | The AttributeSet to use to construct the
CameraPosition . |
CameraPosition
, or null
.
Creates a new CameraPosition
with the
target
set to the provided LatLng
and the
zoom
set to the provided zoom level. The
tilt
and bearing
are left
at their default values (0).
target | The LatLng representing the latitude / longitude of
the desired camera target. |
---|---|
zoom | The desired zoom level of the camera. |
CameraPosition