@@ -7,96 +7,123 @@ public GestureSettings()
7
7
}
8
8
9
9
/// <summary>
10
- /// Whether the rotate gesture is enabled .
10
+ /// Whether double tapping the map with one touch results in a zoom-in animation .
11
11
/// </summary>
12
- public bool RotateEnabled { get ; set ; } = true ;
12
+ public bool DoubleTapToZoomInEnabled { get ; set ; } = true ;
13
13
/// <summary>
14
- /// Whether the pinch to zoom gesture is enabled.
15
- ///
16
- /// iOS: PinchZoomEnabled
14
+ /// Whether single tapping the map with two touches results in a zoom-out animation.
17
15
/// </summary>
18
- public bool PinchToZoomEnabled { get ; set ; } = true ;
16
+ public bool DoubleTouchToZoomOutEnabled { get ; set ; } = true ;
19
17
/// <summary>
20
- /// Whether the single-touch scroll gesture is enabled.
18
+ /// By default, gestures rotate and zoom around the center of the gesture. Set this property to
19
+ /// rotate and zoom around a fixed point instead.
21
20
/// </summary>
22
- public bool ScrollEnabled { get ; set ; } = true ;
21
+ public ScreenPosition ? FocalPoint { get ; set ; }
23
22
/// <summary>
24
- /// Whether rotation is enabled for the pinch to zoom gesture.
25
- ///
26
- /// iOS: SimultaneousRotateAndPinchZoomEnabled
23
+ /// Whether the quick zoom gesture is enabled.
27
24
/// </summary>
28
- public bool SimultaneousRotateAndPinchToZoomEnabled { get ; set ; } = true ;
25
+ public bool QuickZoomEnabled { get ; set ; } = true ;
29
26
/// <summary>
30
27
/// Whether the pitch gesture is enabled.
31
28
/// </summary>
32
29
public bool PitchEnabled { get ; set ; } = true ;
33
30
/// <summary>
31
+ /// Whether pan is enabled for the pinch gesture.
32
+ ///
33
+ /// iOS: PinchPanEnabled
34
+ /// </summary>
35
+ public bool PinchScrollEnabled { get ; set ; } = true ;
36
+ /// <summary>
37
+ /// Whether the rotate gesture is enabled.
38
+ /// </summary>
39
+ public bool RotateEnabled { get ; set ; } = true ;
40
+ /// <summary>
41
+ /// Whether the single-touch scroll gesture is enabled.
42
+ ///
43
+ /// iOS: PanEnabled
44
+ /// </summary>
45
+ public bool ScrollEnabled { get ; set ; } = true ;
46
+ /// <summary>
34
47
/// Configures the directions in which the map is allowed to move during a scroll gesture.
35
48
///
36
49
/// iOS: PanMode
37
50
/// </summary>
38
51
public PanMode ScrollMode { get ; set ; } = PanMode . Both ;
39
52
/// <summary>
40
- /// Whether double tapping the map with one touch results in a zoom-in animation.
53
+ /// Whether rotation is enabled for the pinch to zoom gesture.
54
+ ///
55
+ /// iOS: SimultaneousRotateAndPinchZoomEnabled
41
56
/// </summary>
42
- public bool DoubleTapToZoomInEnabled { get ; set ; } = true ;
57
+ public bool SimultaneousRotateAndPinchToZoomEnabled { get ; set ; } = true ;
58
+
43
59
/// <summary>
44
- /// Whether single tapping the map with two touches results in a zoom-out animation.
60
+ /// Android only.
61
+ ///
62
+ /// Whether rotate threshold increases when pinching to zoom. true by default.
45
63
/// </summary>
46
- public bool DoubleTouchToZoomOutEnabled { get ; set ; } = true ;
64
+ public bool IncreaseRotateThresholdWhenPinchingToZoom { get ; set ; } = true ;
47
65
/// <summary>
48
- /// Whether the quick zoom gesture is enabled.
66
+ /// Android only.
67
+ /// Whether pinch to zoom threshold increases when rotating. true by default.
49
68
/// </summary>
50
- public bool QuickZoomEnabled { get ; set ; } = true ;
69
+ public bool IncreasePinchToZoomThresholdWhenRotating { get ; set ; } = true ;
51
70
/// <summary>
52
- /// By default, gestures rotate and zoom around the center of the gesture. Set this property to
53
- /// rotate and zoom around a fixed point instead.
71
+ /// iOS only.
72
+ ///
73
+ /// A constant factor that determines how quickly pan deceleration animations happen.
74
+ /// Multiplied with the velocity vector once per millisecond during deceleration animations.
54
75
/// </summary>
55
- public ScreenPosition ? FocalPoint { get ; set ; }
76
+ public float ? PanDecelerationFactor { get ; set ; }
56
77
/// <summary>
57
78
/// Android only.
79
+ ///
58
80
/// Whether a deceleration animation following a pinch-to-zoom gesture is enabled. True by default.
59
81
/// </summary>
60
82
public bool PinchToZoomDecelerationEnabled { get ; set ; } = true ;
61
83
/// <summary>
62
84
/// Android only.
63
- /// Whether a deceleration animation following a rotate gesture is enabled. True by default.
85
+ ///
86
+ /// Whether the pinch to zoom gesture is enabled.
64
87
/// </summary>
65
- public bool RotateDecelerationEnabled { get ; set ; } = true ;
88
+ public bool PinchToZoomEnabled
89
+ {
90
+ get => PinchEnabled && PinchZoomEnabled ;
91
+ set
92
+ {
93
+ PinchEnabled = PinchZoomEnabled = value ;
94
+ }
95
+ }
66
96
/// <summary>
67
- /// Android only.
68
- /// Whether a deceleration animation following a scroll gesture is enabled. True by default.
97
+ /// iOS Only
98
+ ///
99
+ /// Whether the pinch gesture is enabled.
69
100
/// </summary>
70
- public bool ScrollDecelerationEnabled { get ; set ; } = true ;
101
+ public bool PinchEnabled { get ; set ; } = true ;
102
+ /// <summary>
103
+ /// iOS Only
104
+ ///
105
+ /// Whether zoom is enabled for the pinch gesture.
106
+ /// </summary>
107
+ public bool PinchZoomEnabled { get ; set ; } = true ;
71
108
/// <summary>
72
109
/// Android only.
73
110
///
74
- /// Whether rotate threshold increases when pinching to zoom. true by default.
111
+ /// Whether a deceleration animation following a rotate gesture is enabled. True by default.
75
112
/// </summary>
76
- public bool IncreaseRotateThresholdWhenPinchingToZoom { get ; set ; } = true ;
113
+ public bool RotateDecelerationEnabled { get ; set ; } = true ;
77
114
/// <summary>
78
115
/// Android only.
79
- /// Whether pinch to zoom threshold increases when rotating. true by default.
116
+ ///
117
+ /// Whether a deceleration animation following a scroll gesture is enabled. True by default.
80
118
/// </summary>
81
- public bool IncreasePinchToZoomThresholdWhenRotating { get ; set ; } = true ;
119
+ public bool ScrollDecelerationEnabled { get ; set ; } = true ;
82
120
/// <summary>
83
121
/// Android only.
122
+ ///
84
123
/// The amount by which the zoom level increases or decreases during a double-tap-to-zoom-in or
85
124
/// double-touch-to-zoom-out gesture. 1.0 by default. Must be positive.
86
125
/// </summary>
87
126
public float ZoomAnimationAmount { get ; set ; } = 1.0f ;
88
- /// <summary>
89
- /// iOS only.
90
- /// A constant factor that determines how quickly pan deceleration animations happen.
91
- /// Multiplied with the velocity vector once per millisecond during deceleration animations.
92
- /// </summary>
93
- public float PanDecelerationFactor { get ; set ; } = 1.0f ;
94
- /// <summary>
95
- /// Whether pan is enabled for the pinch gesture.
96
- ///
97
- /// iOS: PanEnabled
98
- /// </summary>
99
- public bool PinchScrollEnabled { get ; set ; } = true ;
100
127
}
101
128
public enum PanMode
102
129
{
0 commit comments