diff options
author | Jordan Kiley <jmkiley@users.noreply.github.com> | 2018-12-12 10:58:08 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-12 10:58:08 -0800 |
commit | b3a244f7d88ed385ec9fd87a436dd0d74fb41ef2 (patch) | |
tree | f5616b38ef5a5f09b9d65115582db7ba3a24f554 /platform/darwin | |
parent | b1cf981beb0a3ce75f305d2a3882a9df9f6a7cc4 (diff) | |
download | qtlocation-mapboxgl-b3a244f7d88ed385ec9fd87a436dd0d74fb41ef2.tar.gz |
[darwin] move turnstile event for snapshotter (#13549)
Diffstat (limited to 'platform/darwin')
-rw-r--r-- | platform/darwin/src/MGLMapSnapshotter.mm | 6 |
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; } |