summaryrefslogtreecommitdiff
path: root/ios
diff options
context:
space:
mode:
authorJustin R. Miller <incanus@codesorcery.net>2014-05-31 17:19:21 -0700
committerJustin R. Miller <incanus@codesorcery.net>2014-05-31 17:19:21 -0700
commit5b3e8904dec9db38bf3a24b74e2ebbac64c6f59c (patch)
tree0e9299432a537191cb7e394b59c6586ee3f83f57 /ios
parent57465ff13127aea82ed07ffb98e8c57869aaa89f (diff)
downloadqtlocation-mapboxgl-5b3e8904dec9db38bf3a24b74e2ebbac64c6f59c.tar.gz
use new layout guide API to fix compass offset problem
Diffstat (limited to 'ios')
-rw-r--r--ios/MBXViewController.mm2
m---------ios/mapbox-gl-cocoa0
2 files changed, 2 insertions, 0 deletions
diff --git a/ios/MBXViewController.mm b/ios/MBXViewController.mm
index f74857a083..76649cdfc3 100644
--- a/ios/MBXViewController.mm
+++ b/ios/MBXViewController.mm
@@ -42,6 +42,8 @@ llmr::Settings_NSUserDefaults *settings = nullptr;
self.mapView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
[self.view addSubview:self.mapView];
+ self.mapView.viewControllerForLayoutGuides = self;
+
settings = new llmr::Settings_NSUserDefaults();
[self restoreState:nil];
diff --git a/ios/mapbox-gl-cocoa b/ios/mapbox-gl-cocoa
-Subproject 1e008ce7dce7f762b3c74825381a376b1aa03b9
+Subproject 31b708821de6e8a539ff3a2353202850c253da9