CameraUpdate

data class CameraUpdate @JvmOverloads constructor(val target: LatLng? = null, val bounds: LatLngBounds? = null, val bearing: Double = UNCHANGED, val tilt: Double = UNCHANGED, val zoom: Double = UNCHANGED, @Size(value = 4) val padding: DoubleArray? = DoubleArray(4)) : CameraUpdate

Data class to specify what changes should be applied to the camera through com.woosmap.sdk.MapView.easeCamera or com.woosmap.sdk.MapView.moveCamera.

Only the specified properties will be changed.

This requires either a target or a bound.

Throws

if instanced with neither target nor bounds.

Constructors

Link copied to clipboard
constructor(target: LatLng? = null, bounds: LatLngBounds? = null, bearing: Double = UNCHANGED, tilt: Double = UNCHANGED, zoom: Double = UNCHANGED, @Size(value = 4) padding: DoubleArray? = DoubleArray(4))

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Direction that the camera is pointing in, in degrees clockwise from north.

Link copied to clipboard
val bounds: LatLngBounds? = null

Bounds that should fit in the camera point of view. Can't be set if target is set.

Link copied to clipboard

Padding in pixels. Specified in left, top, right, bottom order.

Link copied to clipboard
val target: LatLng? = null

The new center position the camera will be aimed at.

Link copied to clipboard

The angle, in degrees, of the camera angle from the nadir (directly facing the Earth).

Link copied to clipboard

Zoom level near the center of the screen.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int