CameraPosition class

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, pitch angle, and heading.

Constructors

CameraPosition({required LatLng target, double bearing = 0.0, double tilt = 0.0, double zoom = 0})
const

Properties

appleMapsCameraPosition → CameraPosition
no setter
bearing double
The camera's bearing in degrees, measured clockwise from north.
final
googleMapsCameraPosition → CameraPosition
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
target LatLng
The geographical location that the camera is pointing at.
final
tilt double
final
zoom double
The zoom level of the camera.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

fromAppleMapCameraPosition(CameraPosition cameraPosition) CameraPosition
fromGoogleMapCameraPosition(CameraPosition cameraPosition) CameraPosition