FirstFixFlight class

Quyết định bay tới vị trí người dùng (LocateUserOptions.flyTo, sharemap-engine.md 12d): lần có vị trí đầu tiên thì bay, một lần mỗi bản đồ — trừ khi camera đã rời chỗ ban đầu; người dùng bấm nút vị trí lúc chưa có vị trí (forceNext) thì có là bay, bất kể camera.

Constructors

FirstFixFlight({bool enabled = true})

Properties

enabled → bool
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

forceNext() → void
Nút vị trí bị bấm lúc chưa có vị trí.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
shouldFly(UserLocationContext location, Future<bool> cameraUntouched()) → Future<bool>
true = bay tới location ngay. cameraUntouched chỉ được hỏi khi cần.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

sameCamera(double lat1, double lng1, double zoom1, double lat2, double lng2, double zoom2) → bool
Hai camera coi như một: native trả số thực đã qua phép chiếu — dung sai ~10 m và 0.01 zoom.