summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Rex <julian.rex@gmail.com>2018-11-02 11:56:09 -0400
committerGitHub <noreply@github.com>2018-11-02 11:56:09 -0400
commit3b9618e0253c28b280bdbf9d7bd064a909c8c86b (patch)
tree33cb0db06ef2cae983827e881257af9b01d09ec2
parenta3d0ff777b015bac7c1b16a1dd0a030b915782b0 (diff)
downloadqtlocation-mapboxgl-3b9618e0253c28b280bdbf9d7bd064a909c8c86b.tar.gz
[ios] Changed event attributes to be JSON serialization friendly. (#13266)
-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
};
}