[tests] Add resources for rendering offline
The StupFileSource of the memory test will do the rendering completely offline with a vector tile that is densly populated with features and a raster tile of the same region. The styles are streets and satellite respectivelly.
This commit is contained in:
BIN
test/fixtures/resources/glyphs.pbf
vendored
BIN
test/fixtures/resources/glyphs.pbf
vendored
Binary file not shown.
BIN
test/fixtures/resources/raster.png
vendored
BIN
test/fixtures/resources/raster.png
vendored
Binary file not shown.
|
Before Width: | Height: | Size: 12 KiB |
BIN
test/fixtures/resources/raster.tile
vendored
Normal file
BIN
test/fixtures/resources/raster.tile
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 31 KiB |
2
test/fixtures/resources/source_raster.json
vendored
2
test/fixtures/resources/source_raster.json
vendored
@@ -1 +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"]}
|
||||
{"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],"cacheControl":"max-age=43200,s-maxage=604800","center":[0,0,3],"created":1358310600000,"description":"","id":"mapbox.satellite","maxzoom":22,"minzoom":0,"modified":1446150592060,"name":"Mapbox Satellite","private":false,"scheme":"xyz","tilejson":"2.0.0","tiles":["https://a.tiles.mapbox.com/v4/mapbox.satellite/{z}/{x}/{y}.png?access_token=pk.accesstoken","https://b.tiles.mapbox.com/v4/mapbox.satellite/{z}/{x}/{y}.png?access_token=pk.accesstoken"],"webpage":"https://a.tiles.mapbox.com/v4/mapbox.satellite/page.html?access_token=pk.accesstoken"}
|
||||
2
test/fixtures/resources/source_vector.json
vendored
2
test/fixtures/resources/source_vector.json
vendored
File diff suppressed because one or more lines are too long
2
test/fixtures/resources/sprite.json
vendored
2
test/fixtures/resources/sprite.json
vendored
File diff suppressed because one or more lines are too long
BIN
test/fixtures/resources/sprite.png
vendored
BIN
test/fixtures/resources/sprite.png
vendored
Binary file not shown.
|
Before Width: | Height: | Size: 38 KiB After Width: | Height: | Size: 90 KiB |
40
test/fixtures/resources/style.json
vendored
40
test/fixtures/resources/style.json
vendored
@@ -1,40 +0,0 @@
|
||||
{
|
||||
"version": 8,
|
||||
"name": "Test",
|
||||
"sources": {
|
||||
"vectorsource": {
|
||||
"url": "test/fixtures/resources/source_vector.json",
|
||||
"type": "vector"
|
||||
},
|
||||
"rastersource": {
|
||||
"url": "test/fixtures/resources/source_raster.json",
|
||||
"type": "raster",
|
||||
"tileSize": 512
|
||||
}
|
||||
},
|
||||
"sprite": "test/fixtures/resources/sprite",
|
||||
"glyphs": "test/fixtures/resources/glyphs.pbf",
|
||||
"layers": [{
|
||||
"id": "road",
|
||||
"type": "symbol",
|
||||
"source": "vectorsource",
|
||||
"source-layer": "road_label",
|
||||
"layout": {
|
||||
"text-font": ["Open Sans Regular", "Arial Unicode MS Regular"],
|
||||
"text-field": "{name_en}"
|
||||
}
|
||||
}, {
|
||||
"id": "poi",
|
||||
"type": "symbol",
|
||||
"source": "vectorsource",
|
||||
"source-layer": "poi_label",
|
||||
"layout": {
|
||||
"text-font": ["Open Sans Regular", "Arial Unicode MS Regular"],
|
||||
"icon-image": "{maki}_icon"
|
||||
}
|
||||
}, {
|
||||
"id": "rasterlayer",
|
||||
"type": "fill",
|
||||
"source": "rastersource"
|
||||
}]
|
||||
}
|
||||
1
test/fixtures/resources/style_raster.json
vendored
Normal file
1
test/fixtures/resources/style_raster.json
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":8,"name":"Satellite","metadata":{"mapbox:autocomposite":true,"mapbox:type":"default"},"sources":{"mapbox":{"type":"raster","url":"mapbox://mapbox.satellite","tileSize":256}},"sprite":"mapbox://sprites/mapbox/satellite-v9","glyphs":"mapbox://fonts/mapbox/{fontstack}/{range}.pbf","layers":[{"id":"background","type":"background","paint":{"background-color":"rgb(4,7,14)"}},{"id":"satellite","type":"raster","source":"mapbox","source-layer":"mapbox_satellite_full"}],"created":0,"modified":0,"owner":"mapbox","id":"satellite-v9","draft":false}
|
||||
1
test/fixtures/resources/style_vector.json
vendored
Normal file
1
test/fixtures/resources/style_vector.json
vendored
Normal file
File diff suppressed because one or more lines are too long
BIN
test/fixtures/resources/vector.pbf
vendored
BIN
test/fixtures/resources/vector.pbf
vendored
Binary file not shown.
BIN
test/fixtures/resources/vector.tile
vendored
Normal file
BIN
test/fixtures/resources/vector.tile
vendored
Normal file
Binary file not shown.
Reference in New Issue
Block a user