public abstract class CameraPosition extends Object implements Parcelable
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Constructor and Description |
---|
CameraPosition() |
Modifier and Type | Method and Description |
---|---|
static CameraPosition |
create(LatLng location,
float zoom)
Creates a new
CameraPosition with the given location and zoom. |
static CameraPosition |
create(LatLng location,
float zoom,
float rotation,
float tilt)
Creates a new
CameraPosition with the given location, zoom, rotation and tilt. |
abstract LatLng |
getLocation()
The location.
|
float |
getRotationDeg()
The counter-clockwise rotation of the camera, in degrees; 0 corresponds to north pointing up.
|
abstract float |
getRotationRad()
The counter-clockwise rotation of the camera, in radians; 0 corresponds to north pointing up.
|
float |
getTiltDeg()
The tilt angle, in degrees.
|
abstract float |
getTiltRad()
The tilt angle, in radians.
|
abstract float |
getZoom()
The zoom.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
describeContents, writeToParcel
public abstract LatLng getLocation()
public abstract float getZoom()
public abstract float getRotationRad()
public float getRotationDeg()
public abstract float getTiltRad()
public float getTiltDeg()
public static CameraPosition create(LatLng location, float zoom, float rotation, float tilt)
CameraPosition
with the given location, zoom, rotation and tilt.
All angles are in radians.public static CameraPosition create(LatLng location, float zoom)
CameraPosition
with the given location and zoom. The rotation and tilt are
set to 0
.