MLNUserTrackingMode enum
The mode used to track the user location on the map. Used with
MLNMapView/userTrackingMode.
Related examples
- TODO: Switch between user tracking modes example to learn how to toggle modes and how each mode behaves.
Values
- MLNUserTrackingModeNone → const MLNUserTrackingMode
-
The map does not follow the user location.
const MLNUserTrackingMode(0) - MLNUserTrackingModeFollow → const MLNUserTrackingMode
-
The map follows the user location. This tracking mode falls back to
MLNUserTrackingMode/MLNUserTrackingModeNoneif the user pans the map view.const MLNUserTrackingMode(1) - MLNUserTrackingModeFollowWithHeading → const MLNUserTrackingMode
-
The map follows the user location and rotates when the heading changes. The default user location annotation displays a fan-shaped indicator with the current heading. The heading indicator represents the direction the device is facing, which is sized according to the reported accuracy.
This tracking mode is disabled if the user pans the map view, but remains enabled if the user zooms in. If the user rotates the map view, this tracking mode will fall back to
MLNUserTrackingModeFollow.const MLNUserTrackingMode(2) - MLNUserTrackingModeFollowWithCourse → const MLNUserTrackingMode
-
The map follows the user location and rotates when the course changes. Course represents the direction in which the device is traveling. The default user location annotation shows a puck-shaped indicator that rotates as the course changes.
This tracking mode is disabled if the user pans the map view, but remains enabled if the user zooms in. If the user rotates the map view, this tracking mode will fall back to
MLNUserTrackingModeFollow.const MLNUserTrackingMode(3)
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
- value → int
-
final
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
Static Methods
-
fromValue(
int value) → MLNUserTrackingMode
Constants
-
values
→ const List<
MLNUserTrackingMode> - A constant List of the values in this enum, in order of their declaration.