From c608803ca95e833c9312c0f1cd622594224d5458 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Konstantin=20K=C3=A4fer?= Date: Tue, 15 Mar 2016 11:04:10 +0100 Subject: [PATCH] [ios] explicitly load the style when the app loads --- platform/ios/app/MBXViewController.mm | 1 + 1 file changed, 1 insertion(+) diff --git a/platform/ios/app/MBXViewController.mm b/platform/ios/app/MBXViewController.mm index c8a171310..9a047a0ee 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];