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({Point? center, MbxEdgeInsets? padding, ScreenCoordinate? anchor, double? zoom, double? bearing, double? pitch})
Properties
- anchor ↔ ScreenCoordinate?
-
Point of reference for
zoomandangle, assuming an origin at the top-left corner of the view.read / write - bearing ↔ double?
-
Bearing, measured in degrees from true north. Wrapped to [0, 360).
read / write
- center ↔ Point?
-
Coordinate at the center of the camera.
read / write
- hashCode → int
-
The hash code for this object.
read-onlyinherited
- padding ↔ MbxEdgeInsets?
-
Padding around the interior of the view that affects the frame of
reference for
center.read / write - pitch ↔ double?
-
Pitch toward the horizon measured in degrees.
read / write
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
- zoom ↔ double?
-
Zero-based zoom level. Constrained to the minimum and maximum zoom
levels.
read / write
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