diff options
author | Julian Rex <julian.rex@gmail.com> | 2018-11-02 11:56:09 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-02 11:56:09 -0400 |
commit | 3b9618e0253c28b280bdbf9d7bd064a909c8c86b (patch) | |
tree | 33cb0db06ef2cae983827e881257af9b01d09ec2 | |
parent | a3d0ff777b015bac7c1b16a1dd0a030b915782b0 (diff) | |
download | qtlocation-mapboxgl-3b9618e0253c28b280bdbf9d7bd064a909c8c86b.tar.gz |
[ios] Changed event attributes to be JSON serialization friendly. (#13266)
-rw-r--r-- | platform/darwin/src/MGLShapeOfflineRegion.mm | 2 | ||||
-rw-r--r-- | platform/darwin/src/MGLTilePyramidOfflineRegion.mm | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/platform/darwin/src/MGLShapeOfflineRegion.mm b/platform/darwin/src/MGLShapeOfflineRegion.mm index 7a2de8a82b..c016c30ee4 100644 --- a/platform/darwin/src/MGLShapeOfflineRegion.mm +++ b/platform/darwin/src/MGLShapeOfflineRegion.mm @@ -32,7 +32,7 @@ MMEEventKeyShapeForOfflineRegion: @"shaperegion", MMEEventKeyMinZoomLevel: @(self.minimumZoomLevel), MMEEventKeyMaxZoomLevel: @(self.maximumZoomLevel), - MMEEventKeyStyleURL: self.styleURL + MMEEventKeyStyleURL: self.styleURL.absoluteString ?: [NSNull null] #endif }; } diff --git a/platform/darwin/src/MGLTilePyramidOfflineRegion.mm b/platform/darwin/src/MGLTilePyramidOfflineRegion.mm index 2e06be679e..be493bc45d 100644 --- a/platform/darwin/src/MGLTilePyramidOfflineRegion.mm +++ b/platform/darwin/src/MGLTilePyramidOfflineRegion.mm @@ -29,7 +29,7 @@ MMEEventKeyShapeForOfflineRegion: @"tileregion", MMEEventKeyMinZoomLevel: @(self.minimumZoomLevel), MMEEventKeyMaxZoomLevel: @(self.maximumZoomLevel), - MMEEventKeyStyleURL: self.styleURL + MMEEventKeyStyleURL: self.styleURL.absoluteString ?: [NSNull null] #endif }; } |