Skip to content

Commit

Permalink
Added test case for raster layer extent
Browse files Browse the repository at this point in the history
  • Loading branch information
tmpsantos committed Jul 29, 2016
1 parent 346aebb commit 4444918
Show file tree
Hide file tree
Showing 4 changed files with 90 additions and 0 deletions.
Binary file added render-tests/raster-extent/maxzoom/expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
45 changes: 45 additions & 0 deletions render-tests/raster-extent/maxzoom/style.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
"version": 8,
"metadata": {
"test": {
"height": 256
}
},
"center": [
13.418056,
52.499167
],
"zoom": 16,
"sources": {
"satellite": {
"type": "raster",
"tiles": [
"local://tiles/{z}-{x}-{y}.satellite.png"
],
"maxzoom": 17,
"tileSize": 256
}
},
"layers": [
{
"id": "background",
"type": "background",
"paint": {
"background-color": "white"
}
},
{
"id": "raster-none",
"type": "raster",
"source": "satellite",
"maxzoom": 10,
"layout": {
"visibility": "visible"
},
"paint": {
"raster-opacity": 1,
"raster-fade-duration": 0
}
}
]
}
Binary file added render-tests/raster-extent/minzoom/expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
45 changes: 45 additions & 0 deletions render-tests/raster-extent/minzoom/style.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
"version": 8,
"metadata": {
"test": {
"height": 256
}
},
"center": [
13.418056,
52.499167
],
"zoom": 9,
"sources": {
"satellite": {
"type": "raster",
"tiles": [
"local://tiles/{z}-{x}-{y}.satellite.png"
],
"maxzoom": 17,
"tileSize": 256
}
},
"layers": [
{
"id": "background",
"type": "background",
"paint": {
"background-color": "white"
}
},
{
"id": "raster-none",
"type": "raster",
"source": "satellite",
"minzoom": 10,
"layout": {
"visibility": "visible"
},
"paint": {
"raster-opacity": 1,
"raster-fade-duration": 0
}
}
]
}

0 comments on commit 4444918

Please sign in to comment.