summaryrefslogtreecommitdiff
path: root/platform/ios/src/MGLCameraChange.h
blob: c2f7728f2c6799ee9018e3b1c8bc5426823abff2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#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
};