summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMinh Nguyễn <mxn@1ec5.org>2015-08-13 10:00:05 -0700
committerMinh Nguyễn <mxn@1ec5.org>2015-08-14 10:09:43 -0700
commitdfeb479011bbbd99de37863f5bea5fc1a8b0e02c (patch)
tree844105e4548c5dee74c8938b0802f8ee117d3679 /include
parent2f316878448d0056b5c4ced6ce0819349eaf466e (diff)
downloadqtlocation-mapboxgl-dfeb479011bbbd99de37863f5bea5fc1a8b0e02c.tar.gz
MGLUserTrackingModeFollowWithCourse
Added course-tracking. However, rotation has to happen atomically without animation until #1834 is fixed. Fixes #1605.
Diffstat (limited to 'include')
-rw-r--r--include/mbgl/ios/MGLMapView.h2
-rw-r--r--include/mbgl/ios/MGLTypes.h4
2 files changed, 4 insertions, 2 deletions
diff --git a/include/mbgl/ios/MGLMapView.h b/include/mbgl/ios/MGLMapView.h
index 913d497631..2b9a3d2913 100644
--- a/include/mbgl/ios/MGLMapView.h
+++ b/include/mbgl/ios/MGLMapView.h
@@ -486,7 +486,7 @@ IB_DESIGNABLE
/** Tells the delegate that the location of the user was updated.
*
-* While the showsUserLocation property is set to `YES`, this method is called whenever a new location update is received by the map view. This method is also called if the map view’s user tracking mode is set to MGLUserTrackingModeFollowWithHeading and the heading changes.
+* While the showsUserLocation property is set to `YES`, this method is called whenever a new location update is received by the map view. This method is also called if the map view’s user tracking mode is set to MGLUserTrackingModeFollowWithHeading and the heading changes, or if it is set to MGLUserTrackingModeFollowWithCourse and the course changes.
*
* This method is not called if the application is currently running in the background. If you want to receive location updates while running in the background, you must use the Core Location framework.
*
diff --git a/include/mbgl/ios/MGLTypes.h b/include/mbgl/ios/MGLTypes.h
index 75a0d4619f..f36fc3f44e 100644
--- a/include/mbgl/ios/MGLTypes.h
+++ b/include/mbgl/ios/MGLTypes.h
@@ -21,7 +21,9 @@ typedef NS_ENUM(NSUInteger, MGLUserTrackingMode) {
/** The map follows the user location. */
MGLUserTrackingModeFollow,
/** The map follows the user location and rotates when the heading changes. */
- MGLUserTrackingModeFollowWithHeading
+ MGLUserTrackingModeFollowWithHeading,
+ /** The map follows the user location and rotates when the course changes. */
+ MGLUserTrackingModeFollowWithCourse,
};
NS_ASSUME_NONNULL_END