summaryrefslogtreecommitdiff
path: root/test/fixtures/resources
diff options
context:
space:
mode:
authorThiago Marcos P. Santos <thiago@mapbox.com>2015-07-02 13:35:23 +0300
committerThiago Marcos P. Santos <thiago@mapbox.com>2015-07-02 23:21:42 +0300
commite4cc06b798d74cf353f641c833941fd864582a22 (patch)
tree7ff11c538bc3f67aa91736288942719a80b93c3e /test/fixtures/resources
parent9cc986e758da9c19cdd078c1acfd44efee8f33f6 (diff)
downloadqtlocation-mapboxgl-e4cc06b798d74cf353f641c833941fd864582a22.tar.gz
Add test fixtures for testing raster tiles
Add a raster source for the style we use for testing that will force requests for raster tiles.
Diffstat (limited to 'test/fixtures/resources')
-rw-r--r--test/fixtures/resources/raster.pngbin0 -> 12146 bytes
-rw-r--r--test/fixtures/resources/source_raster.json1
-rw-r--r--test/fixtures/resources/source_vector.json (renamed from test/fixtures/resources/source.json)0
-rw-r--r--test/fixtures/resources/style.json13
4 files changed, 10 insertions, 4 deletions
diff --git a/test/fixtures/resources/raster.png b/test/fixtures/resources/raster.png
new file mode 100644
index 0000000000..78ad885baf
--- /dev/null
+++ b/test/fixtures/resources/raster.png
Binary files differ
diff --git a/test/fixtures/resources/source_raster.json b/test/fixtures/resources/source_raster.json
new file mode 100644
index 0000000000..b114988edb
--- /dev/null
+++ b/test/fixtures/resources/source_raster.json
@@ -0,0 +1 @@
+{"attribution":"<a href=\"https://www.mapbox.com/about/maps/\" target=\"_blank\">&copy; Mapbox</a> <a href=\"http://www.openstreetmap.org/about/\" target=\"_blank\">&copy; OpenStreetMap</a> <a class=\"mapbox-improve-map\" href=\"https://www.mapbox.com/map-feedback/\" target=\"_blank\">Improve this map</a> <a href=\"https://www.digitalglobe.com/\" target=\"_blank\">&copy; DigitalGlobe</a>","autoscale":true,"bounds":[-180,-85,180,85],"center":[0,0,3],"description":"","id":"mapbox.satellite","maxzoom":19,"minzoom":0,"name":"Mapbox Satellite","private":true,"scheme":"xyz","tilejson":"2.0.0","tiles":["test/fixtures/resources/raster.png"]}
diff --git a/test/fixtures/resources/source.json b/test/fixtures/resources/source_vector.json
index db516f9f95..db516f9f95 100644
--- a/test/fixtures/resources/source.json
+++ b/test/fixtures/resources/source_vector.json
diff --git a/test/fixtures/resources/style.json b/test/fixtures/resources/style.json
index 698f3fb1e8..fb67afc662 100644
--- a/test/fixtures/resources/style.json
+++ b/test/fixtures/resources/style.json
@@ -2,9 +2,14 @@
"version": 1,
"name": "Test",
"sources": {
- "compositedsource": {
- "url": "test/fixtures/resources/source.json",
+ "vectorsource": {
+ "url": "test/fixtures/resources/source_vector.json",
"type": "vector"
+ },
+ "rastersource": {
+ "url": "test/fixtures/resources/source_raster.json",
+ "type": "raster",
+ "tileSize": 256
}
},
"sprite": "test/fixtures/resources/sprite",
@@ -12,7 +17,7 @@
"layers": [{
"id": "road",
"type": "symbol",
- "source": "compositedsource",
+ "source": "vectorsource",
"source-layer": "road_label",
"layout": {
"text-font": "Open Sans Regular, Arial Unicode MS Regular",
@@ -21,7 +26,7 @@
}, {
"id": "poi",
"type": "symbol",
- "source": "compositedsource",
+ "source": "vectorsource",
"source-layer": "poi_label",
"layout": {
"text-font": "Open Sans Regular, Arial Unicode MS Regular",