CameraPosition class
The position of the camera.
Constructors
- CameraPosition({required Point target, double zoom = 15.0, double azimuth = 0.0, double tilt = 0.0})
-
const
Properties
- azimuth → double
-
Angle between north and the direction of interest on the map plane, in degrees in the range (0, 360).
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
props
→ List<
Object> -
The list of properties that will be used to determine whether
two instances are equal.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stringify → bool
-
If set to
true
, the toString method will be overridden to output this instance's props.no setter - target → Point
-
The point the camera is looking at.
final
- tilt → double
-
Camera tilt in degrees. 0 means vertical downward.
final
- zoom → double
-
Zoom level. 0 corresponds to the whole world displayed in a single tile.
final
Methods
-
copyWith(
{Point? target, double? zoom, double? azimuth, double? tilt}) → CameraPosition - Returns a copy of CameraPosition whose values are the same as this instance, unless overwritten by the specified parameters.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited