summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJordan Kiley <jmkiley@users.noreply.github.com>2019-01-07 17:45:10 -0800
committerGitHub <noreply@github.com>2019-01-07 17:45:10 -0800
commitcd0ea372ea06f2f43577644c033c8a974801f3b9 (patch)
treef9d41c182d12b2030aaa1abab70b40d8bb63e255
parente3d622ec35462d5a25c44dd30afee73ba5ded7e9 (diff)
downloadqtlocation-mapboxgl-cd0ea372ea06f2f43577644c033c8a974801f3b9.tar.gz
[ios] cherry picked #13549 (#13548)
-rw-r--r--platform/darwin/src/MGLMapSnapshotter.mm8
1 files changed, 7 insertions, 1 deletions
diff --git a/platform/darwin/src/MGLMapSnapshotter.mm b/platform/darwin/src/MGLMapSnapshotter.mm
index 295a465caf..2bfedd7fbe 100644
--- a/platform/darwin/src/MGLMapSnapshotter.mm
+++ b/platform/darwin/src/MGLMapSnapshotter.mm
@@ -16,6 +16,9 @@
#import "MGLStyle.h"
#import "MGLAttributionInfo_Private.h"
#import "MGLRendererConfiguration.h"
+#if TARGET_OS_IPHONE || TARGET_OS_SIMULATOR
+#import "MGLMapboxEvents.h"
+#endif
#if TARGET_OS_IPHONE
#import "UIImage+MGLAdditions.h"
@@ -30,7 +33,7 @@ const CGFloat MGLSnapshotterMinimumPixelSize = 64;
@implementation MGLMapSnapshotOptions
-- (instancetype _Nonnull)initWithStyleURL:(nullable NSURL *)styleURL camera:(MGLMapCamera *)camera size:(CGSize) size
+- (instancetype _Nonnull)initWithStyleURL:(nullable NSURL *)styleURL camera:(MGLMapCamera *)camera size:(CGSize)size
{
self = [super init];
if (self) {
@@ -138,6 +141,9 @@ const CGFloat MGLSnapshotterMinimumPixelSize = 64;
self = [super init];
if (self) {
[self setOptions:options];
+#if TARGET_OS_IPHONE || TARGET_OS_SIMULATOR
+ [MGLMapboxEvents pushTurnstileEvent];
+#endif
}
return self;
}