diff options
author | Lloyd Sheng <i@lloydsheng.com> | 2018-12-06 11:51:33 +0800 |
---|---|---|
committer | jmkiley <jordan.kiley@mapbox.com> | 2018-12-11 12:43:51 -0800 |
commit | 3cd334e8f9babaaca8a817920efee1c2dca12e40 (patch) | |
tree | 9b31e7494746ab0afb5e20ee8c590f92341b1fa2 | |
parent | 80647fe10ec0c416dd07d7fd607d0fae26679c57 (diff) | |
download | qtlocation-mapboxgl-upstream/jmkiley-cp-13476.tar.gz |
[ios] cp 13476upstream/jmkiley-cp-13476
-rw-r--r-- | platform/darwin/src/MGLMapSnapshotter.mm | 6 |
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; } |