sdk-maps / com.tomtom.online.sdk.map / CameraPosition

CameraPosition

data class CameraPosition

A class that that describes all camera position parameters, such as location, zoom level, pitch angle, and bearing. To construct, use a CameraPositionBuilder.

Parameters

focusPosition - The coordinates that the camera is pointing at.

zoom - The camera zoom level.

pitch - The tilt angle, in degrees.

bearing - The rotation angle, in degrees clockwise from North.

animationDuration - Animation time for the camera update. If it is not set, the default animation time which is 1 second will be executed. If you do not want animation, pass 0.

Types

CameraPositionBuilder

class CameraPositionBuilder

Builder used to construct the CameraPosition object.

Properties

animationDuration

val animationDuration: Int

Animation time for the camera update. If it is not set, the default animation time which is 1 second will be executed. If you do not want animation, pass 0.

bearing

val bearing: Double

The rotation angle, in degrees clockwise from North.

focusPosition

val focusPosition: LatLng

The coordinates that the camera is pointing at.

pitch

val pitch: Double

The tilt angle, in degrees.

zoom

val zoom: Double

The camera zoom level.

Companion Object Functions

builder

fun builder(target: LatLng): CameraPosition.CameraPositionBuilder

Builder to construct the CameraPosition class.

fun builder(): CameraPosition.CameraPositionBuilder

Builder to construct the CameraPosition object.