Skip to Content

CameraPosition

The position of the map “camera”, the view point from which the world is shown in the map view.

Aggregates the camera’s target geographical location, its zoom level, tilt angle, and bearing.

Constructors

CameraPosition.new

CameraPosition.new({double bearing = 0.0, required LatLng target, double tilt = 0.0, double zoom = 0.0})

Creates a immutable representation of the LazarilloMap camera. const

Properties

PropertyTypeDescription
bearingdoubleThe camera’s bearing in degrees, measured clockwise from north. (final)
hashCodeintThe hash code for this object. (no setteroverride)
targetLatLngThe geographical location that the camera is pointing at. (final)
tiltdoubleThe angle, in degrees, of the camera angle from the nadir. (final)
zoomdoubleThe zoom level of the camera. (final)

Methods

toMap

toMap() → Object

Serializes CameraPosition.

Last updated on