MGLUserTrackingMode
enum MGLUserTrackingMode : NSUInteger {}
The mode used to track the user location on the map. Used with
MGLMapView.userTrackingMode
.
-
The map does not follow the user location.
Declaration
Objective-C
MGLUserTrackingModeNone = 0
Swift
case None
-
The map follows the user location.
Declaration
Objective-C
MGLUserTrackingModeFollow
Swift
case Follow
-
The map follows the user location and rotates when the heading changes.
Declaration
Objective-C
MGLUserTrackingModeFollowWithHeading
Swift
case FollowWithHeading
-
The map follows the user location and rotates when the course changes.
Declaration
Objective-C
MGLUserTrackingModeFollowWithCourse
Swift
case FollowWithCourse