summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLloyd Sheng <i@lloydsheng.com>2018-12-06 11:51:33 +0800
committerGitHub <noreply@github.com>2018-12-06 11:51:33 +0800
commit86117eb28f11c94b3d9d3b9bbe4eb86555001f61 (patch)
tree90fe02d3a81e55add78859067478dd0b498b02c9
parent32bdff817d9ed42bf44afc2eb1eb535aecbea340 (diff)
downloadqtlocation-mapboxgl-86117eb28f11c94b3d9d3b9bbe4eb86555001f61.tar.gz
[ios] Add turnstile events for Snapshotter (#13476)
* Add turnstile events for iOS MGLMapSnapshotter
-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 65937fde66..985947c0d5 100644
--- a/platform/darwin/src/MGLMapSnapshotter.mm
+++ b/platform/darwin/src/MGLMapSnapshotter.mm
@@ -17,6 +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"
@@ -74,6 +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;
}