CameraOptions class
Various options for describing the viewpoint of a camera. All fields are optional.
Anchor and center points are mutually exclusive, with preference for the center point when both are set.
Constructors
-
CameraOptions({Map<
String?, Object?> ? center, MbxEdgeInsets? padding, ScreenCoordinate? anchor, double? zoom, double? bearing, double? pitch})
Properties
- anchor ↔ ScreenCoordinate?
-
Point of reference for
zoom
andangle
, assuming an origin at the top-left corner of the view.getter/setter pair - bearing ↔ double?
-
Bearing, measured in degrees from true north. Wrapped to [0, 360).
getter/setter pair
-
center
↔ Map<
String?, Object?> ? -
Coordinate at the center of the camera.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- padding ↔ MbxEdgeInsets?
-
Padding around the interior of the view that affects the frame of
reference for
center
.getter/setter pair - pitch ↔ double?
-
Pitch toward the horizon measured in degrees.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- zoom ↔ double?
-
Zero-based zoom level. Constrained to the minimum and maximum zoom
levels.
getter/setter pair
Methods
-
encode(
) → Object -
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
-
decode(
Object result) → CameraOptions