CameraState class

Describes the viewpoint of a camera.

Constructors

CameraState({required Map<String?, Object?> center, required MbxEdgeInsets padding, required double zoom, required double bearing, required double pitch})

Properties

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) CameraState