diff options
author | Minh Nguyễn <mxn@1ec5.org> | 2015-10-22 15:01:36 -0700 |
---|---|---|
committer | Minh Nguyễn <mxn@1ec5.org> | 2015-10-23 10:09:27 -0700 |
commit | 1e9cf71b5ab243bf531ef8a1ed27dfcdaf75ca34 (patch) | |
tree | 4a622fd49fe008ec6602c2b03ad4dc6755d1d89e /platform | |
parent | 28113d92e76b08ef77d1cb67c8956b4e0f1b5e07 (diff) | |
download | qtlocation-mapboxgl-1e9cf71b5ab243bf531ef8a1ed27dfcdaf75ca34.tar.gz |
IB inspectable for allowing tilt
Diffstat (limited to 'platform')
-rw-r--r-- | platform/ios/MGLMapView.mm | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/platform/ios/MGLMapView.mm b/platform/ios/MGLMapView.mm index 0e7547ef1b..ce1ecfd6d1 100644 --- a/platform/ios/MGLMapView.mm +++ b/platform/ios/MGLMapView.mm @@ -1535,7 +1535,7 @@ std::chrono::steady_clock::duration secondsAsDuration(float duration) + (NS_SET_OF(NSString *) *)keyPathsForValuesAffectingPitchEnabled { - return [NSSet setWithObject:@"allowsPitching"]; + return [NSSet setWithObject:@"allowsTilting"]; } - (void)setDebugActive:(BOOL)debugActive @@ -3410,19 +3410,19 @@ class MBGLView : public mbgl::View self.rotateEnabled = allowsRotating; } -+ (NS_SET_OF(NSString *) *)keyPathsForValuesAffectingAllowsPitching ++ (NS_SET_OF(NSString *) *)keyPathsForValuesAffectingAllowsTilting { return [NSSet setWithObject:@"pitchEnabled"]; } -- (BOOL)allowsPitching +- (BOOL)allowsTilting { return self.pitchEnabled; } -- (void)setAllowsPitching:(BOOL)allowsPitching +- (void)setAllowsTilting:(BOOL)allowsTilting { - self.pitchEnabled = allowsPitching; + self.pitchEnabled = allowsTilting; } - (void)didReceiveMemoryWarning |