diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2016-03-15 11:04:10 +0100 |
---|---|---|
committer | John Firebaugh <john.firebaugh@gmail.com> | 2016-03-22 11:19:58 -0700 |
commit | c608803ca95e833c9312c0f1cd622594224d5458 (patch) | |
tree | baefa5a7cf00a8890b6e8947d7d1d13334a66cfa /platform/ios/app | |
parent | 666c2658b86cd73b8f144f628c52d21894e0ebea (diff) | |
download | qtlocation-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.mm | 1 |
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]; |