public final class MapState
extends java.lang.Object
implements android.os.Parcelable
Map.| Modifier and Type | Field and Description |
|---|---|
static android.os.Parcelable.Creator<MapState> |
CREATOR |
| Constructor and Description |
|---|
MapState(float tilt,
float orientation,
double zoomLevel,
GeoCoordinate center)
A constructor that initializes state values for tilt, orientation, zoom level,
and map center.
|
| Modifier and Type | Method and Description |
|---|---|
int |
describeContents() |
GeoCoordinate |
getCenter()
Returns the
GeoCoordinate representing the center position. |
float |
getOrientation()
Returns the orientation, in degrees relative to true-north (which is
designated as being an orientation of 0 degrees).
|
float |
getTilt()
Returns the tilt, in degrees.
|
double |
getZoomLevel()
Returns the zoom level.
|
void |
writeToParcel(android.os.Parcel dest,
int flags) |
public static final android.os.Parcelable.Creator<MapState> CREATOR
public MapState(float tilt,
float orientation,
double zoomLevel,
GeoCoordinate center)
tilt - tilt value, in degreesorientation - orientation value, in degrees, where true-north is 0 degreeszoomLevel - zoom level valuecenter - A GeoCoordinate representing the center of the mapMap.setZoomLevel(double)public final float getTilt()
public final float getOrientation()
public final double getZoomLevel()
public final GeoCoordinate getCenter()
GeoCoordinate representing the center position.GeoCoordinatepublic int describeContents()
describeContents in interface android.os.Parcelablepublic void writeToParcel(android.os.Parcel dest,
int flags)
writeToParcel in interface android.os.Parcelable