MapMoveSource enum
What moved the camera.
MapMoveEventType says where in a movement a MapMovedEvent sits —
start, idle, addressResolved — and fires the same way whoever moved the
map. This says who moved it.
Anything that follows a moving position needs both. Such a feature moves the camera itself, so treating "the map moved" as "the user panned" makes every follow step cancel the following that produced it. Compare against MapMoveSource.gesture to react to the user alone.
It is a separate field on the event rather than another
MapMoveEventType value on purpose: the two are orthogonal, and hosts
switching exhaustively over the lifecycle keep compiling.
Values
- gesture → const MapMoveSource
-
The user moved the map: drag, fling, pinch, double-tap zoom, scroll wheel or keyboard.
- programmatic → const MapMoveSource
-
The app moved the map, through
MapViewController.moveCamera,MapViewController.fitBounds, or a camera update generic_map issued itself. - unknown → const MapMoveSource
-
The move could not be attributed to either: the map settling into its initial camera, a viewport or interaction-flag change, or a provider that reported the camera change before anything was known about its cause.
Treat it as "not a deliberate user pan" — it is what a map reports before it has ever come to rest.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
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
Constants
-
values
→ const List<
MapMoveSource> - A constant List of the values in this enum, in order of their declaration.