MapState

data class MapState(var center: GeoPoint, var tilt: Double, var zoomLevel: Double, var orientation: Double) : Parcelable

Defines the map state (center, tilt, orientation and zoom level)

Parameters

center

the GeoPoint on which the map is centered (use MapView.center to get the current center of the MapView)

tilt

the rotation angle around x axis between 0° and MapView.maxTiltAngle (use MapView.tiltAngle to get the current tilt angle of the MapView)

zoomLevel

the zoom level of the map (use MapView.zoomLevel to get the current zoom level of the MapView)

orientation

the rotation angle around z axis (use MapView.rotationAngle to get the current orientation of the MapView)

Constructors

Link copied to clipboard
constructor(center: GeoPoint, tilt: Double, zoomLevel: Double, orientation: Double)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
abstract fun describeContents(): Int
Link copied to clipboard
fun equalsTo(mapState: MapState): Boolean
Link copied to clipboard
open override fun toString(): String
Link copied to clipboard
abstract fun writeToParcel(p0: Parcel, p1: Int)