summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLloyd Sheng <i@lloydsheng.com>2018-12-05 18:16:55 +0800
committerLloyd Sheng <i@lloydsheng.com>2018-12-05 18:16:55 +0800
commit13be6d1d507e888afe8c4f24f7722b9477ac627c (patch)
tree1a55d019932012d48a1c4f1799f24539751fcaaf
parent53351c2ae83618eb8324f9ed688fdbf09debf21a (diff)
downloadqtlocation-mapboxgl-upstream/lloyd-snapshotter-turnstile.tar.gz
-rw-r--r--platform/darwin/src/MGLMapSnapshotter.mm4
1 files changed, 4 insertions, 0 deletions
diff --git a/platform/darwin/src/MGLMapSnapshotter.mm b/platform/darwin/src/MGLMapSnapshotter.mm
index 5381648944..985947c0d5 100644
--- a/platform/darwin/src/MGLMapSnapshotter.mm
+++ b/platform/darwin/src/MGLMapSnapshotter.mm
@@ -17,7 +17,9 @@
#import "MGLAttributionInfo_Private.h"
#import "MGLLoggingConfiguration_Private.h"
#import "MGLRendererConfiguration.h"
+#if TARGET_OS_IPHONE || TARGET_OS_SIMULATOR
#import "MGLMapboxEvents.h"
+#endif
#if TARGET_OS_IPHONE
#import "UIImage+MGLAdditions.h"
@@ -75,7 +77,9 @@ const CGFloat MGLSnapshotterMinimumPixelSize = 64;
_latLngForFn = std::move(latLngForFn);
_scale = scale;
_image = image;
+#if TARGET_OS_IPHONE || TARGET_OS_SIMULATOR
[MGLMapboxEvents pushTurnstileEvent];
+#endif
}
return self;
}