summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLloyd Sheng <i@lloydsheng.com>2018-12-06 11:51:33 +0800
committerjmkiley <jordan.kiley@mapbox.com>2018-12-11 12:43:51 -0800
commit3cd334e8f9babaaca8a817920efee1c2dca12e40 (patch)
tree9b31e7494746ab0afb5e20ee8c590f92341b1fa2
parent80647fe10ec0c416dd07d7fd607d0fae26679c57 (diff)
downloadqtlocation-mapboxgl-upstream/jmkiley-cp-13476.tar.gz
-rw-r--r--platform/darwin/src/MGLMapSnapshotter.mm6
1 files changed, 6 insertions, 0 deletions
diff --git a/platform/darwin/src/MGLMapSnapshotter.mm b/platform/darwin/src/MGLMapSnapshotter.mm
index aa1a988b1b..66df581577 100644
--- a/platform/darwin/src/MGLMapSnapshotter.mm
+++ b/platform/darwin/src/MGLMapSnapshotter.mm
@@ -15,6 +15,9 @@
#import "NSBundle+MGLAdditions.h"
#import "MGLStyle.h"
#import "MGLAttributionInfo_Private.h"
+#if TARGET_OS_IPHONE || TARGET_OS_SIMULATOR
+#import "MGLMapboxEvents.h"
+#endif
#if TARGET_OS_IPHONE
#import "UIImage+MGLAdditions.h"
@@ -71,6 +74,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;
}