summaryrefslogtreecommitdiff
path: root/platform/ios/app/MBXSnapshotsViewController.m
diff options
context:
space:
mode:
Diffstat (limited to 'platform/ios/app/MBXSnapshotsViewController.m')
-rw-r--r--platform/ios/app/MBXSnapshotsViewController.m4
1 files changed, 2 insertions, 2 deletions
diff --git a/platform/ios/app/MBXSnapshotsViewController.m b/platform/ios/app/MBXSnapshotsViewController.m
index ab5ad97c90..3bf93d8721 100644
--- a/platform/ios/app/MBXSnapshotsViewController.m
+++ b/platform/ios/app/MBXSnapshotsViewController.m
@@ -51,11 +51,11 @@
// Create and start the snapshotter
MGLMapSnapshotter* snapshotter = [[MGLMapSnapshotter alloc] initWithOptions:options];
- [snapshotter startWithCompletionHandler: ^(UIImage *image, NSError *error) {
+ [snapshotter startWithCompletionHandler: ^(MGLMapSnapshot* snapshot, NSError *error) {
if (error) {
NSLog(@"Could not load snapshot: %@", [error localizedDescription]);
} else {
- imageView.image = image;
+ imageView.image = snapshot.image;
}
}];