diff --git a/test/fixtures/resources/raster.png b/test/fixtures/resources/raster.png new file mode 100644 index 000000000..78ad885ba Binary files /dev/null and b/test/fixtures/resources/raster.png differ diff --git a/test/fixtures/resources/source_raster.json b/test/fixtures/resources/source_raster.json new file mode 100644 index 000000000..b114988ed --- /dev/null +++ b/test/fixtures/resources/source_raster.json @@ -0,0 +1 @@ +{"attribution":"© Mapbox © OpenStreetMap Improve this map © DigitalGlobe","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 similarity index 100% rename from test/fixtures/resources/source.json rename to test/fixtures/resources/source_vector.json diff --git a/test/fixtures/resources/style.json b/test/fixtures/resources/style.json index 698f3fb1e..fb67afc66 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",