CameraPosition class
Where the map camera is.
Same name and same fields as in google_maps_flutter, with one difference
in vocabulary worth knowing: what Google calls tilt, MapLibre calls
pitch. Here it's called tilt because the goal is for code coming from
Google to compile without touching it.
- Annotations
Constructors
- CameraPosition({required LatLng target, double zoom = 0.0, double bearing = 0.0, double tilt = 0.0})
-
Creates the camera position.
const
Properties
- bearing → double
-
Where north points, in degrees clockwise.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- target → LatLng
-
The point that sits at the center of the screen.
final
- tilt → double
-
The tilt in degrees. 0 is straight down; 60, almost at ground level.
final
- zoom → double
-
The zoom level. 0 is the whole world; 20, a doorway.
final
Methods
-
copyWith(
{LatLng? target, double? zoom, double? bearing, double? tilt}) → CameraPosition - A copy with some fields changed.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override