summaryrefslogtreecommitdiff
path: root/platform/darwin
diff options
context:
space:
mode:
authorJordan Kiley <jmkiley@users.noreply.github.com>2018-12-12 10:58:08 -0800
committerGitHub <noreply@github.com>2018-12-12 10:58:08 -0800
commitb3a244f7d88ed385ec9fd87a436dd0d74fb41ef2 (patch)
treef5616b38ef5a5f09b9d65115582db7ba3a24f554 /platform/darwin
parentb1cf981beb0a3ce75f305d2a3882a9df9f6a7cc4 (diff)
downloadqtlocation-mapboxgl-b3a244f7d88ed385ec9fd87a436dd0d74fb41ef2.tar.gz
[darwin] move turnstile event for snapshotter (#13549)
Diffstat (limited to 'platform/darwin')
-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;
}