LocationBased

fun LocationBased(position: GeoPoint, zoom: Double = DEFAULT_ZOOM, tilt: Double = DEFAULT_TILT, rotation: Double = DEFAULT_ROTATION, fieldOfView: Double = DEFAULT_FIELD_OF_VIEW): InitialCameraOptions

Creates options for the initial configuration of the camera for the given position.

Parameters

position

GeoPoint of the new camera position.

zoom

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:

  • 0: The camera is fully zoomed out the whole globe is visible.

  • 5: Country-level.

  • 10: City-level.

  • 15: Neighborhood-level.

  • 20: Street-level.

  • 22: Maximum zoom in.

tilt

Sets the tilt to the specified angle. The tilt is measured from the nadir, meaning that a value of 0 indicates the camera looking straight down, and 90 means straight ahead towards the horizon.

rotation

Sets the camera heading. Heading is measured starting at due north and continues clockwise around the compass. Thus, north is 0 degrees, east is 90 degrees, south is 180 degrees, and so on.

fieldOfView

New camera field of view (in degrees). Valid range is 1.0, 150.0