MapViewCamera class
Where a map's camera looks, and which way it faces.
What MapViewController.setCamera takes. moveCamera and fitBounds
always leave the map north up and flat; this is for a camera that follows
something moving and turns with it — a vehicle being navigated.
- Annotations
Constructors
- MapViewCamera({required LatLng center, double? zoom, double bearing = 0, double tilt = 0})
-
const
Properties
- bearing → double
-
The direction the top of the map points, in degrees clockwise from
north. 0 is north up.
final
- center → LatLng
-
The point at the middle of the map.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- tilt → double
-
How far the camera leans from looking straight down, in degrees. A
provider that draws a flat map (flutter_map) ignores it.
final
- zoom → double?
-
Null keeps the zoom the map is at.
final
Methods
-
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