CameraOptions class final
A camera, with only the members that fields selects.
See mln_camera_options in the
C API reference.
Constructors
- CameraOptions({LatLng? center, double? centerAltitude, EdgeInsets? padding, ScreenPoint? anchor, double? zoom, double? bearing, double? pitch, double? roll, double? fieldOfView})
-
const
Properties
- anchor → ScreenPoint?
-
The screen point that a change to the zoom, bearing, or pitch keeps in
place. A
centeroverrides it.final - bearing → double?
-
The rotation from north, in degrees.
final
- center → LatLng?
-
final
- centerAltitude → double?
-
The altitude of the center, in meters above sea level.
final
- fieldOfView → double?
-
The vertical field of view, in degrees.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- padding → EdgeInsets?
-
Insets from the map's edges. The camera centers within the rest.
final
- pitch → double?
-
The tilt toward the horizon, in degrees. 0 looks straight down.
final
- roll → double?
-
The roll, in degrees.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- zoom → double?
-
final
Methods
-
copyWith(
{LatLng? center, double? centerAltitude, EdgeInsets? padding, ScreenPoint? anchor, double? zoom, double? bearing, double? pitch, double? roll, double? fieldOfView}) → CameraOptions - A copy of this value with the given members replaced.
-
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.
inherited