CameraOptions
Determines options for the new configuration of the camera. For example the location, zoom level, tilt angle.
All the options are optional. Setting any of these to null
keeps the current camera property unmodified.
See also
to check convenient factory methods that can create various CameraOptions.
Constructors
Link copied to clipboard
constructor(position: GeoPoint? = null, @FloatRange(from = 0.0, to = 22.0) zoom: Double? = null, @FloatRange(from = 0.0, to = 90.0) tilt: Double? = null, @FloatRange(from = 0.0, to = 360.0) rotation: Double? = null, @FloatRange(from = 1.0, to = 150.0) fieldOfView: Double? = null)
Properties
Link copied to clipboard
New camera field of view (in degrees). Valid range is 1.0, 150.0
Link copied to clipboard
Zoom value for the camera. The value shall be clamped by the CameraController.minZoom and the CameraController.maxZoom values. Values go from 0 (no zoom) to 22 (fully zoomed in). Zoom level categories are as following:
Functions
Link copied to clipboard
fun deepCopy(position: GeoPoint? = null, @FloatRange(from = 0.0, to = 22.0) zoom: Double? = null, @FloatRange(from = 0.0, to = 90.0) tilt: Double? = null, @FloatRange(from = 0.0, to = 360.0) rotation: Double? = null, @FloatRange(from = 1.0, to = 150.0) fieldOfView: Double? = null): CameraOptions
Performs a deep copy of the current CameraOptions including all the properties which are not accessible via the constructor parameters.