summaryrefslogtreecommitdiff
path: root/platform/ios/src/MGLMapView.h
diff options
context:
space:
mode:
authorJesse Bounds <jesse@rebounds.net>2016-07-07 15:40:07 -0700
committerJesse Bounds <jesse@rebounds.net>2016-07-07 15:40:07 -0700
commit23caa9f7aa9a128896afc0743482e015d2c60373 (patch)
tree0d927ad1f66351c52ad53fe295fe4bed855963a3 /platform/ios/src/MGLMapView.h
parent2e10c0a8660af9cdf6ff897aaa39e15fe62c6582 (diff)
parentbb057409c728968cf37c9faca2c1eb4c589c5716 (diff)
downloadqtlocation-mapboxgl-23caa9f7aa9a128896afc0743482e015d2c60373.tar.gz
Merge branch 'release-ios-v3.3.0' into master
Diffstat (limited to 'platform/ios/src/MGLMapView.h')
-rw-r--r--platform/ios/src/MGLMapView.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/platform/ios/src/MGLMapView.h b/platform/ios/src/MGLMapView.h
index 5512264a35..4cd4a58131 100644
--- a/platform/ios/src/MGLMapView.h
+++ b/platform/ios/src/MGLMapView.h
@@ -21,6 +21,15 @@ NS_ASSUME_NONNULL_BEGIN
@protocol MGLCalloutView;
@protocol MGLFeature;
+/** The default deceleration rate for a map view. */
+extern const CGFloat MGLMapViewDecelerationRateNormal;
+
+/** A fast deceleration rate for a map view. */
+extern const CGFloat MGLMapViewDecelerationRateFast;
+
+/** Disables decleration in a map view. */
+extern const CGFloat MGLMapViewDecelerationRateImmediate;
+
/** The vertical alignment of an annotation within a map view. */
typedef NS_ENUM(NSUInteger, MGLAnnotationVerticalAlignment) {
/** Aligns the annotation vertically in the center of the map view. */
@@ -404,6 +413,17 @@ IB_DESIGNABLE
*/
@property(nonatomic, getter=isPitchEnabled) BOOL pitchEnabled;
+/**
+ A floating-point value that determines the rate of deceleration after the user
+ lifts their finger.
+
+ Your application can use the `MGLMapViewDecelerationRateNormal` and
+ `MGLMapViewDecelerationRateFast` constants as reference points for reasonable
+ deceleration rates. `MGLMapViewDecelerationRateImmediate` can be used to
+ disable deceleration entirely.
+ */
+@property(nonatomic) CGFloat decelerationRate;
+
#pragma mark Manipulating the Viewpoint
/**