[ios] Add turnstile events for Snapshotter (#13476)

* Add turnstile events for iOS MGLMapSnapshotter
This commit is contained in:
Lloyd Sheng
2018-12-06 11:51:33 +08:00
committed by GitHub
parent 32bdff817d
commit 86117eb28f

View File

@@ -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;
}