summaryrefslogtreecommitdiff
path: root/platform/ios/src/MGLCameraChange.h
diff options
context:
space:
mode:
authorJulian Rex <julian.rex@mapbox.com>2018-02-12 11:36:03 -0500
committerJulian Rex <julian.rex@mapbox.com>2018-02-12 11:36:03 -0500
commit99582b773ebe1b0e39240fc608135a1742b4fa73 (patch)
treeedf3b4f5a2f440696c5b8dcee440ea8991b9a862 /platform/ios/src/MGLCameraChange.h
parent0faad452a96ce6644cfc4ac07ec0e0c76e136935 (diff)
downloadqtlocation-mapboxgl-upstream/jrex-10674-enum.tar.gz
[ios] Made reason bitmask private, created public enum, and provided a mapping from the bitmask to enumupstream/jrex-10674-enum
Diffstat (limited to 'platform/ios/src/MGLCameraChange.h')
-rw-r--r--platform/ios/src/MGLCameraChange.h35
1 files changed, 0 insertions, 35 deletions
diff --git a/platform/ios/src/MGLCameraChange.h b/platform/ios/src/MGLCameraChange.h
deleted file mode 100644
index c2f7728f2c..0000000000
--- a/platform/ios/src/MGLCameraChange.h
+++ /dev/null
@@ -1,35 +0,0 @@
-#import "MGLFoundation.h"
-
-typedef NS_OPTIONS(NSUInteger, MGLCameraChangeReason)
-{
- /// No reason for the camera move is specified.
- MGLCameraChangeReasonNone = 0,
-
- /// Set when a public API that moves the camera is called. This may be set for some gestures
- MGLCameraChangeReasonProgrammatic = 1 << 0,
-
- /// User tapped the compass to reset to North
- MGLCameraChangeReasonResetNorth = 1 << 1,// Tap on compass
-
- /// User panned the map.
- MGLCameraChangeReasonGesturePan = 1 << 2,
-
- /// User pinched to zoom in/out
- MGLCameraChangeReasonGesturePinch = 1 << 3,
-
- // User rotated the map
- MGLCameraChangeReasonGestureRotate = 1 << 4,
-
- /// User zoomed the map in
- MGLCameraChangeReasonGestureZoomIn = 1 << 5,// One finger double tap
-
- /// User zoomed the map out
- MGLCameraChangeReasonGestureZoomOut = 1 << 6,// Two finger single tap
-
- /// User long pressed on the map for a quick zoom
- MGLCameraChangeReasonGestureQuickZoom = 1 << 7,// Long press
-
- // User panned with two fingers to tilt the map
- MGLCameraChangeReasonGesturePitch = 1 << 8// Two finger drag
-};
-