summaryrefslogtreecommitdiff
path: root/platform/ios/app/MBXSnapshotsViewController.m
diff options
context:
space:
mode:
authorIvo van Dongen <info@ivovandongen.nl>2017-10-09 19:50:21 +0300
committerFabian Guerra Soto <fabian.guerra@mapbox.com>2017-11-01 09:23:53 -0400
commitde9098cf99463e433e9e9d6088865bc63948e567 (patch)
tree45669b918e2549e367742cb2e924f69277febf7a /platform/ios/app/MBXSnapshotsViewController.m
parent9c3e78a9b95782e8fbf15cf7a4052f46f27922fd (diff)
downloadqtlocation-mapboxgl-de9098cf99463e433e9e9d6088865bc63948e567.tar.gz
[darwin][ios][macos] map snapshotter - add MGLMapSnapshot wrapper
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;
}
}];