Camera Position
class CameraPosition @JvmOverloads constructor(target: LatLng, zoom: Float, bearing: Float = 0.0f) : Parcelable(source)
Represents the camera position for a map.
Defines where the camera is positioned (target location), how close the camera is to the earth's surface (zoom level) and which way is up on the screen (bearing).
Parcelable, e.g. for a android.os.Bundle or rememberSaveable.
Parameters
target
The location that the camera is pointing at
zoom
The zoom level, ranging from 2.0 (world view) to 19.0 (street level)
bearing
The direction at the top of the screen, in degrees clockwise from north, e.g. 90 for east up; normalized to 0 (inclusive) to 360 (exclusive)
Throws
if zoom is outside the valid range or bearing is not finite
Types
Link copied to clipboard
class Builder
Builds a CameraPosition step by step, as in the Maps SDK, e.g. CameraPosition.builder().target(latLng).zoom(15f).bearing(90f).build().