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.
This commit is contained in:
BIN
test/fixtures/resources/raster.png
vendored
Normal file
BIN
test/fixtures/resources/raster.png
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 12 KiB |
1
test/fixtures/resources/source_raster.json
vendored
Normal file
1
test/fixtures/resources/source_raster.json
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"attribution":"<a href=\"https://www.mapbox.com/about/maps/\" target=\"_blank\">© Mapbox</a> <a href=\"http://www.openstreetmap.org/about/\" target=\"_blank\">© 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\">© 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"]}
|
||||
13
test/fixtures/resources/style.json
vendored
13
test/fixtures/resources/style.json
vendored
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user