CameraPosition class
相机位置,包含可视区域的位置参数。
Constructors
- CameraPosition({double bearing = 0.0, required LatLng target, double tilt = 0.0, double zoom = 10})
-
构造一个CameraPosition 对象
const
Properties
- bearing → double
-
可视区域指向的方向,以角度为单位,从正北向逆时针方向计算,从0 度到360 度。
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- target → LatLng
-
目标位置的屏幕中心点经纬度坐标。
final
- tilt → double
-
目标可视区域的倾斜度,以角度为单位。范围从0到360度
final
- zoom → double
-
目标可视区域的缩放级别
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → dynamic - 将CameraPosition装换成Map
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
dynamic other) → bool -
The equality operator.
override
Static Methods
-
fromMap(
dynamic json) → CameraPosition? - 从Map转换成CameraPosition