CameraOptionsFactory

Factory providing methods for convenient creation of the different CameraOptions.

Functions

Link copied to clipboard
fun fieldOfViewBy(fieldOfViewBy: Double): CameraOptions

Returns the CameraOptions that adjust the field of view (in degrees) by the given fieldOfViewBy.

Link copied to clipboard

Returns the CameraOptions that set the field of view (in degrees) of the camera.

Link copied to clipboard
fun lookAt(position: GeoPoint): CameraOptions

Returns the CameraOptions that makes the camera looking at the given GeoPoint.

fun lookAt(position: GeoPoint, @FloatRange(from = 0.0, to = 22.0) zoom: Double): CameraOptions

Returns the CameraOptions that make the camera looking at the given GeoPoint at the certain zoom level.

fun lookAt(bounds: GeoBounds, @FloatRange(from = 0.0, to = 22.0) zoom: Double? = null, padding: Int? = null): CameraOptions

Returns the CameraOptions that make the camera looking at the given GeoBounds at the certain zoom level.

Link copied to clipboard
fun moveBy(screenDelta: PointF): CameraOptions

Returns the CameraOptions that moves the camera by the given PointF.

Link copied to clipboard
fun rotateBy(headingDelta: Double): CameraOptions

Returns the CameraOptions that rotates the camera (heading) by the given delta.

Link copied to clipboard
fun rotateTo(@FloatRange(from = 0.0, to = 360.0) heading: Double): CameraOptions

Returns the CameraOptions that set the heading of the camera.

Link copied to clipboard
fun scaleBy(scaleFactor: Double): CameraOptions

Returns the CameraOptions that adjust the camera zoom level by the given scaleFactor.

fun scaleBy(scaleFactor: Double, focus: Point): CameraOptions

Returns the CameraOptions that adjust the camera zoom level by the given scaleFactor and moves the camera towards the focus.

Link copied to clipboard
fun tiltBy(@FloatRange(from = 0.0, to = 90.0) tiltDelta: Double): CameraOptions

Returns the CameraOptions that adjust the tilt of the camera by the given delta.

Link copied to clipboard
fun tiltTo(@FloatRange(from = 0.0, to = 90.0) tilt: Double): CameraOptions

Returns the CameraOptions that set the tilt of the camera.

Link copied to clipboard
fun zoomBy(zoomDelta: Double): CameraOptions

Returns the CameraOptions that adjust the camera zoom level by the given delta.

Link copied to clipboard

Returns the CameraOptions that increase the zoom level step by step.

Link copied to clipboard

Returns the CameraOptions that decrease the zoom level step by step.

Link copied to clipboard
fun zoomTo(@FloatRange(from = 0.0, to = 22.0) zoom: Double): CameraOptions

Returns the CameraOptions that apply the given zoom level on the camera.