From 4d058ffd94a07c1e1fe48814f29a16a1c5f8a0fd Mon Sep 17 00:00:00 2001 From: Nadia Barbosa Date: Fri, 3 Mar 2017 18:07:29 -0800 Subject: [ios, macos] Exclude MGLUserTrackingMode from macOS --- platform/ios/src/MGLMapView.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'platform/ios/src/MGLMapView.h') diff --git a/platform/ios/src/MGLMapView.h b/platform/ios/src/MGLMapView.h index 4a7ac308de..bdb6d2c917 100644 --- a/platform/ios/src/MGLMapView.h +++ b/platform/ios/src/MGLMapView.h @@ -44,6 +44,21 @@ typedef NS_ENUM(NSUInteger, MGLAnnotationVerticalAlignment) { MGLAnnotationVerticalAlignmentBottom, }; +/** + The mode used to track the user location on the map. Used with + `MGLMapView.userTrackingMode`. + */ +typedef NS_ENUM(NSUInteger, MGLUserTrackingMode) { + /** The map does not follow the user location. */ + MGLUserTrackingModeNone = 0, + /** The map follows the user location. */ + MGLUserTrackingModeFollow, + /** The map follows the user location and rotates when the heading changes. */ + MGLUserTrackingModeFollowWithHeading, + /** The map follows the user location and rotates when the course changes. */ + MGLUserTrackingModeFollowWithCourse, +}; + /** An interactive, customizable map view with an interface similar to the one provided by Apple’s MapKit. -- cgit v1.2.1