summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNadia Barbosa <nadiabarbosa@me.com>2017-03-03 18:07:29 -0800
committerNadia Barbosa <captainbarbosa@users.noreply.github.com>2017-03-03 18:59:30 -0800
commit4d058ffd94a07c1e1fe48814f29a16a1c5f8a0fd (patch)
treebe8bc46860c731dd5283e7cbbe8c2695b5f24e28
parent1f1cc131ea869eae57209bcc6ba74ddb3af14579 (diff)
downloadqtlocation-mapboxgl-4d058ffd94a07c1e1fe48814f29a16a1c5f8a0fd.tar.gz
[ios, macos] Exclude MGLUserTrackingMode from macOS
-rw-r--r--platform/darwin/src/MGLTypes.h15
-rw-r--r--platform/ios/src/MGLMapView.h15
2 files changed, 15 insertions, 15 deletions
diff --git a/platform/darwin/src/MGLTypes.h b/platform/darwin/src/MGLTypes.h
index 8cd2cacaa6..65cebbe5f4 100644
--- a/platform/darwin/src/MGLTypes.h
+++ b/platform/darwin/src/MGLTypes.h
@@ -44,21 +44,6 @@ typedef NS_ENUM(NSInteger, MGLErrorCode) {
MGLErrorCodeConnectionFailed = 3,
};
-/**
- 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,
-};
-
/** Options for enabling debugging features in an `MGLMapView` instance. */
typedef NS_OPTIONS(NSUInteger, MGLMapDebugMaskOptions) {
/** Edges of tile boundaries are shown as thick, red lines to help diagnose
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
@@ -45,6 +45,21 @@ typedef NS_ENUM(NSUInteger, MGLAnnotationVerticalAlignment) {
};
/**
+ 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.