Builder

class Builder

Builder for composing CameraPosition objects.

Constructors

Link copied to clipboard
constructor()

Create an empty builder.

constructor(previous: CameraPosition?)

Create a builder with an existing CameraPosition data.

constructor(typedArray: TypedArray?)

Create a builder with an existing CameraPosition data.

Create a builder from an existing CameraPositionUpdate update.

constructor(update: CameraUpdateFactory.ZoomUpdate?)

Create builder from an existing CameraPositionUpdate update.

Functions

Link copied to clipboard

Sets the direction that the camera is pointing in, in degrees clockwise from north.

Link copied to clipboard

Builds the CameraPosition.

Link copied to clipboard
fun padding(@Size(value = 4) padding: DoubleArray?): CameraPosition.Builder
fun padding(left: Double, top: Double, right: Double, bottom: Double): CameraPosition.Builder

Padding in pixels that shifts the viewport by the specified amount. Applied padding is going to persist and impact following camera transformations.

Link copied to clipboard

Sets the location where the camera is pointing at.

Link copied to clipboard
fun tilt(@FloatRange(from = 0.0, to = 60.0) tilt: Double): CameraPosition.Builder

Set the tilt of the camera in degrees

Link copied to clipboard
fun zoom(@FloatRange(from = 0.0, to = 25.5) zoom: Double): CameraPosition.Builder

Set the zoom of the camera