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 = 0
-
The map follows the user location.
Declaration
Objective-C
MGLUserTrackingModeFollow
Swift
case follow = 1
-
The map follows the user location and rotates when the heading changes.
Declaration
Objective-C
MGLUserTrackingModeFollowWithHeading
Swift
case followWithHeading = 2
-
The map follows the user location and rotates when the course changes.
Declaration
Objective-C
MGLUserTrackingModeFollowWithCourse
Swift
case followWithCourse = 3