summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjmkiley <jordan.kiley@mapbox.com>2019-07-11 11:03:56 -0700
committerjmkiley <jordan.kiley@mapbox.com>2019-07-11 11:03:56 -0700
commit6d36b37ead14c4ea5cb86f1873f50668d677a7e5 (patch)
tree7630c0930a5ea003aaf4c3a561f860b08e5da1fa
parent688ba57f1c128715b9a3137db7af95543cf3b292 (diff)
downloadqtlocation-mapboxgl-6d36b37ead14c4ea5cb86f1873f50668d677a7e5.tar.gz
[ios] Use oneliner.json
-rw-r--r--platform/darwin/test/MGLOfflineStorageTests.mm4
1 files changed, 3 insertions, 1 deletions
diff --git a/platform/darwin/test/MGLOfflineStorageTests.mm b/platform/darwin/test/MGLOfflineStorageTests.mm
index 43ed069733..10f0200b7e 100644
--- a/platform/darwin/test/MGLOfflineStorageTests.mm
+++ b/platform/darwin/test/MGLOfflineStorageTests.mm
@@ -207,7 +207,9 @@
{ .latitude = 48.8660, .longitude = 2.3306 },
{ .latitude = 48.8603, .longitude = 2.3213 },
};
- MGLTilePyramidOfflineRegion *region = [[MGLTilePyramidOfflineRegion alloc] initWithStyleURL:[MGLStyle streetsStyleURL] bounds:bounds fromZoomLevel:10 toZoomLevel:11];
+
+ NSURL *styleURL = [[NSBundle bundleForClass:[self class]] URLForResource:@"one-liner" withExtension:@"json"];
+ MGLTilePyramidOfflineRegion *region = [[MGLTilePyramidOfflineRegion alloc] initWithStyleURL:styleURL bounds:bounds fromZoomLevel:10 toZoomLevel:11];
NSString *nameKey = @"Name";
NSString *name = @"Paris square";