summaryrefslogtreecommitdiff
path: root/platform
diff options
context:
space:
mode:
authorJulian Rex <julian.rex@gmail.com>2018-11-02 13:38:02 -0400
committerGitHub <noreply@github.com>2018-11-02 13:38:02 -0400
commita7d10868686eca58982c6ca9477b557b56c73bb5 (patch)
tree10ff47ef4c6daf04e0e6d92f71a140d10e2db4a7 /platform
parentcbe65c730ca97402e3ee040c47cd56276954363c (diff)
downloadqtlocation-mapboxgl-a7d10868686eca58982c6ca9477b557b56c73bb5.tar.gz
[ios] CP #13266 - Changed event attributes to be JSON serialization friendly. (#13267)
Diffstat (limited to 'platform')
-rw-r--r--platform/darwin/src/MGLShapeOfflineRegion.mm2
-rw-r--r--platform/darwin/src/MGLTilePyramidOfflineRegion.mm2
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
};
}