summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjmkiley <jordan.kiley@mapbox.com>2018-12-11 13:28:47 -0800
committerjmkiley <jordan.kiley@mapbox.com>2018-12-11 13:28:47 -0800
commitdd91891117f79d52ea45898349b698db21a71785 (patch)
tree8446c57e982694044c640f24a79d4f21053c8f3d
parent662a4955615d201f6d1525dcbf3cc08da3d546b4 (diff)
downloadqtlocation-mapboxgl-upstream/jmkiley-snapshotter-turnstile.tar.gz
[darwin] move turnstile event for snapshotterupstream/jmkiley-snapshotter-turnstile
-rw-r--r--platform/darwin/src/MGLMapSnapshotter.mm6
1 files changed, 3 insertions, 3 deletions
diff --git a/platform/darwin/src/MGLMapSnapshotter.mm b/platform/darwin/src/MGLMapSnapshotter.mm
index 985947c0d5..afcfc91109 100644
--- a/platform/darwin/src/MGLMapSnapshotter.mm
+++ b/platform/darwin/src/MGLMapSnapshotter.mm
@@ -77,9 +77,6 @@ const CGFloat MGLSnapshotterMinimumPixelSize = 64;
_latLngForFn = std::move(latLngForFn);
_scale = scale;
_image = image;
-#if TARGET_OS_IPHONE || TARGET_OS_SIMULATOR
- [MGLMapboxEvents pushTurnstileEvent];
-#endif
}
return self;
}
@@ -162,6 +159,9 @@ const CGFloat MGLSnapshotterMinimumPixelSize = 64;
#else
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(applicationWillTerminate:) name:NSApplicationWillTerminateNotification object:nil];
#endif
+#if TARGET_OS_IPHONE || TARGET_OS_SIMULATOR
+ [MGLMapboxEvents pushTurnstileEvent];
+#endif
}
return self;
}