Skip to content

Commit

Permalink
add expected render-tests
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewharvey committed Apr 20, 2018
1 parent aade880 commit 8f6fb77
Show file tree
Hide file tree
Showing 8 changed files with 57 additions and 8 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
49 changes: 49 additions & 0 deletions test/integration/render-tests/image/raster-scaling/style.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{
"version": 8,
"metadata": {
"test": {
"width": 512,
"height": 512
}
},
"center": [
-122.514426,
37.562984
],
"zoom": 20,
"sources": {
"image": {
"type": "image",
"coordinates": [
[
-122.51596391201019,
37.56238816766053
],
[
-122.51467645168304,
37.56410183312965
],
[
-122.51309394836426,
37.563391708549425
],
[
-122.51423120498657,
37.56161849366671
]
],
"url": "local://image/0.png"
}
},
"layers": [
{
"id": "image",
"type": "raster",
"source": "image",
"paint": {
"raster-fade-duration": 0,
"raster-scaling": "nearest"
}
}
]
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@
13.418056,
52.499167
],
"zoom": 16,
"zoom": 20,
"sources": {
"satellite": {
"type": "raster",
"tiles": [
"local://tiles/{z}-{x}-{y}.satellite.png"
],
"maxzoom": 10,
"maxzoom": 17,
"tileSize": 256
}
},
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@
13.418056,
52.499167
],
"zoom": 16,
"zoom": 20,
"sources": {
"satellite": {
"type": "raster",
"tiles": [
"local://tiles/{z}-{x}-{y}.satellite.png"
],
"maxzoom": 10,
"maxzoom": 17,
"tileSize": 256
}
},
Expand All @@ -30,11 +30,11 @@
"raster-scaling": {
"stops": [
[
16,
19,
"linear"
],
[
17,
20,
"nearest"
]
]
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@
13.418056,
52.499167
],
"zoom": 16,
"zoom": 20,
"sources": {
"satellite": {
"type": "raster",
"tiles": [
"local://tiles/{z}-{x}-{y}.satellite.png"
],
"maxzoom": 10,
"maxzoom": 17,
"tileSize": 256
}
},
Expand Down

0 comments on commit 8f6fb77

Please sign in to comment.