FollowPositionMapRotationMode enum Maps & 3D Scenes
Map rotation behavior during follow position mode
Defines how the map rotates when following the device position. The rotation can be based on device heading, compass sensor, or a fixed angle.
See also:
- FollowPositionPreferences.mapRotationMode - Get the current rotation mode and angle
- FollowPositionPreferences.setMapRotationMode - Change the rotation mode
Values
- positionHeading → const FollowPositionMapRotationMode
-
Rotate map based on device heading from position sensor
The map rotates to match the direction of travel as determined by the position sensor (GPS). This mode works well during navigation, keeping the route direction always pointing upward. The rotation is derived from consecutive position updates.
- compass → const FollowPositionMapRotationMode
-
Rotate map based on compass sensor orientation
The map rotates to match the device's physical orientation as detected by the compass (magnetometer). This mode provides immediate feedback when the device is rotated, even when stationary. May be affected by magnetic interference in some environments.
- fixed → const FollowPositionMapRotationMode
-
Keep map at a fixed rotation angle
The map maintains a constant rotation angle regardless of device movement or orientation. The angle is specified via the
mapAngleparameter in FollowPositionPreferences.setMapRotationMode. Useful for maintaining a specific map orientation, such as north-up (angle 0).
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<
FollowPositionMapRotationMode> - A constant List of the values in this enum, in order of their declaration.