CameraOptionsFactory

object CameraOptionsFactory

Factory providing methods for convenient creation of the different CameraOptions.

Important: This is a Public Preview API. It may be changed or removed at any time.

Functions

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

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

fun lookAt(position: GeoCoordinate, zoom: Double): CameraOptions

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

fun lookAt(    bounds: GeoBounds,     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: Point): CameraOptions

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

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(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(tiltDelta: Double): CameraOptions

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

Link copied to clipboard
fun tiltTo(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
fun zoomIn(): CameraOptions

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

Link copied to clipboard
fun zoomOut(): CameraOptions

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

Link copied to clipboard
fun zoomTo(zoom: Double): CameraOptions

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