summaryrefslogtreecommitdiff
path: root/platform/ios/app
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2016-03-15 11:04:10 +0100
committerJohn Firebaugh <john.firebaugh@gmail.com>2016-03-22 11:19:58 -0700
commitc608803ca95e833c9312c0f1cd622594224d5458 (patch)
treebaefa5a7cf00a8890b6e8947d7d1d13334a66cfa /platform/ios/app
parent666c2658b86cd73b8f144f628c52d21894e0ebea (diff)
downloadqtlocation-mapboxgl-c608803ca95e833c9312c0f1cd622594224d5458.tar.gz
[ios] explicitly load the style when the app loads
Diffstat (limited to 'platform/ios/app')
-rw-r--r--platform/ios/app/MBXViewController.mm1
1 files changed, 1 insertions, 0 deletions
diff --git a/platform/ios/app/MBXViewController.mm b/platform/ios/app/MBXViewController.mm
index c8a1713104..9a047a0ee2 100644
--- a/platform/ios/app/MBXViewController.mm
+++ b/platform/ios/app/MBXViewController.mm
@@ -54,6 +54,7 @@ static const CLLocationCoordinate2D WorldTourDestinations[] = {
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(saveState:) name:UIApplicationWillTerminateNotification object:nil];
self.styleIndex = 0;
+ self.mapView.styleURL = [NSURL URLWithString:@(mbgl::util::default_styles::orderedStyles[self.styleIndex].url)];
UIButton *titleButton = (UIButton *)self.navigationItem.titleView;
[titleButton setTitle:@(mbgl::util::default_styles::orderedStyles[self.styleIndex].name) forState:UIControlStateNormal];