diff options
author | Nadia Barbosa <nadiabarbosa@me.com> | 2018-10-05 19:10:58 -0400 |
---|---|---|
committer | Nadia Barbosa <captainbarbosa@users.noreply.github.com> | 2018-10-23 15:49:11 -0700 |
commit | 5f1d4199d994dd552b2b65d500133bb39fc88e5b (patch) | |
tree | f47bfe35f8e23f8ea963300ab85665c3a73e1d71 /platform/darwin/src/MGLShapeOfflineRegion.mm | |
parent | 28bc4b2bd87fb15821b0aac911224577d4fe5a32 (diff) | |
download | qtlocation-mapboxgl-5f1d4199d994dd552b2b65d500133bb39fc88e5b.tar.gz |
[ios] Log event when offline pack is created
Diffstat (limited to 'platform/darwin/src/MGLShapeOfflineRegion.mm')
-rw-r--r-- | platform/darwin/src/MGLShapeOfflineRegion.mm | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/platform/darwin/src/MGLShapeOfflineRegion.mm b/platform/darwin/src/MGLShapeOfflineRegion.mm index e1393f1199..7a2de8a82b 100644 --- a/platform/darwin/src/MGLShapeOfflineRegion.mm +++ b/platform/darwin/src/MGLShapeOfflineRegion.mm @@ -12,6 +12,10 @@ #import "MGLShape_Private.h" #import "MGLStyle.h" +#if TARGET_OS_IPHONE || TARGET_OS_SIMULATOR +#import "MMEConstants.h" +#endif + @interface MGLShapeOfflineRegion () <MGLOfflineRegion_Private, MGLShapeOfflineRegion_Private> @end @@ -22,6 +26,17 @@ @synthesize styleURL = _styleURL; +-(NSDictionary *)offlineStartEventAttributes { + return @{ + #if TARGET_OS_IPHONE || TARGET_OS_SIMULATOR + MMEEventKeyShapeForOfflineRegion: @"shaperegion", + MMEEventKeyMinZoomLevel: @(self.minimumZoomLevel), + MMEEventKeyMaxZoomLevel: @(self.maximumZoomLevel), + MMEEventKeyStyleURL: self.styleURL + #endif + }; +} + + (BOOL)supportsSecureCoding { return YES; } |