summaryrefslogtreecommitdiff
path: root/ios
diff options
context:
space:
mode:
authorJason Wray <jason@kulturny.com>2015-08-18 16:25:40 -0400
committerJason Wray <jason@kulturny.com>2015-08-26 11:23:03 -0700
commit42dc5336db5179c50b8d1edeca0bef7a27c8cefd (patch)
tree601c4117661e9aaed3ffd17660946476cf7eb238 /ios
parentd8ed33c7d48dbabe7e6f5e48f148ea2bec823a07 (diff)
downloadqtlocation-mapboxgl-42dc5336db5179c50b8d1edeca0bef7a27c8cefd.tar.gz
iOS perspective gesture support
Drag two fingers upward to tilt the map. Implements #2116
Diffstat (limited to 'ios')
-rw-r--r--ios/app/MBXViewController.mm2
1 files changed, 2 insertions, 0 deletions
diff --git a/ios/app/MBXViewController.mm b/ios/app/MBXViewController.mm
index f7cbf0c042..99c207d24d 100644
--- a/ios/app/MBXViewController.mm
+++ b/ios/app/MBXViewController.mm
@@ -86,6 +86,7 @@ mbgl::Settings_NSUserDefaults *settings = nullptr;
settings->latitude = self.mapView.centerCoordinate.latitude;
settings->zoom = self.mapView.zoomLevel;
settings->bearing = self.mapView.direction;
+ settings->pitch = self.mapView.pitch;
settings->debug = self.mapView.isDebugActive;
settings->userTrackingMode = self.mapView.userTrackingMode;
settings->showsUserLocation = self.mapView.showsUserLocation;
@@ -99,6 +100,7 @@ mbgl::Settings_NSUserDefaults *settings = nullptr;
settings->load();
[self.mapView setCenterCoordinate:CLLocationCoordinate2DMake(settings->latitude, settings->longitude) zoomLevel:settings->zoom animated:NO];
self.mapView.direction = settings->bearing;
+ self.mapView.pitch = settings->pitch;
self.mapView.userTrackingMode = settings->userTrackingMode;
self.mapView.showsUserLocation = settings->showsUserLocation;
[self.mapView setDebugActive:settings->debug];