diff options
Diffstat (limited to 'platform/ios/app/MBXSnapshotsViewController.m')
-rw-r--r-- | platform/ios/app/MBXSnapshotsViewController.m | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/platform/ios/app/MBXSnapshotsViewController.m b/platform/ios/app/MBXSnapshotsViewController.m index 95d3251e2e..dd88d199d3 100644 --- a/platform/ios/app/MBXSnapshotsViewController.m +++ b/platform/ios/app/MBXSnapshotsViewController.m @@ -51,7 +51,8 @@ // Create and start the snapshotter __weak UIImageView *weakImageView = imageView; - MGLMapSnapshotter* snapshotter = [[MGLMapSnapshotter alloc] initWithOptions:options]; + MGLMapSnapshotter* snapshotter = [[MGLMapSnapshotter alloc] initWithOptions:options + offlineStorage:[MGLOfflineStorage sharedOfflineStorage]]; [snapshotter startWithCompletionHandler: ^(MGLMapSnapshot* snapshot, NSError *error) { if (error) { NSLog(@"Could not load snapshot: %@", [error localizedDescription]); |