-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Render tests for layer zoom visibility (#6455)
- Loading branch information
Łukasz Paczos
authored
Apr 12, 2018
1 parent
8fa3d4d
commit 13ea16d
Showing
12 changed files
with
294 additions
and
0 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
46 changes: 46 additions & 0 deletions
46
test/integration/render-tests/zoom-visibility/above/style.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
{ | ||
"version": 8, | ||
"metadata": { | ||
"test": { | ||
"width": 64, | ||
"height": 64, | ||
"operations": [ | ||
[ | ||
"setZoom", | ||
2.1 | ||
], | ||
[ | ||
"wait" | ||
], | ||
[ | ||
"setLayerZoomRange", | ||
"circle", | ||
1, | ||
2 | ||
], | ||
[ | ||
"wait" | ||
] | ||
] | ||
} | ||
}, | ||
"sources": { | ||
"geojson": { | ||
"type": "geojson", | ||
"data": { | ||
"type": "Point", | ||
"coordinates": [ | ||
0, | ||
0 | ||
] | ||
} | ||
} | ||
}, | ||
"layers": [ | ||
{ | ||
"id": "circle", | ||
"type": "circle", | ||
"source": "geojson" | ||
} | ||
] | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
46 changes: 46 additions & 0 deletions
46
test/integration/render-tests/zoom-visibility/below/style.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
{ | ||
"version": 8, | ||
"metadata": { | ||
"test": { | ||
"width": 64, | ||
"height": 64, | ||
"operations": [ | ||
[ | ||
"setZoom", | ||
0.9 | ||
], | ||
[ | ||
"wait" | ||
], | ||
[ | ||
"setLayerZoomRange", | ||
"circle", | ||
1, | ||
2 | ||
], | ||
[ | ||
"wait" | ||
] | ||
] | ||
} | ||
}, | ||
"sources": { | ||
"geojson": { | ||
"type": "geojson", | ||
"data": { | ||
"type": "Point", | ||
"coordinates": [ | ||
0, | ||
0 | ||
] | ||
} | ||
} | ||
}, | ||
"layers": [ | ||
{ | ||
"id": "circle", | ||
"type": "circle", | ||
"source": "geojson" | ||
} | ||
] | ||
} |
Binary file added
BIN
+221 Bytes
test/integration/render-tests/zoom-visibility/in-range/expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
53 changes: 53 additions & 0 deletions
53
test/integration/render-tests/zoom-visibility/in-range/style.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
{ | ||
"version": 8, | ||
"metadata": { | ||
"test": { | ||
"width": 64, | ||
"height": 64, | ||
"operations": [ | ||
[ | ||
"setZoom", | ||
2.1 | ||
], | ||
[ | ||
"wait" | ||
], | ||
[ | ||
"setLayerZoomRange", | ||
"circle", | ||
1, | ||
2 | ||
], | ||
[ | ||
"wait" | ||
], | ||
[ | ||
"setZoom", | ||
1.5 | ||
], | ||
[ | ||
"wait" | ||
] | ||
] | ||
} | ||
}, | ||
"sources": { | ||
"geojson": { | ||
"type": "geojson", | ||
"data": { | ||
"type": "Point", | ||
"coordinates": [ | ||
0, | ||
0 | ||
] | ||
} | ||
} | ||
}, | ||
"layers": [ | ||
{ | ||
"id": "circle", | ||
"type": "circle", | ||
"source": "geojson" | ||
} | ||
] | ||
} |
Binary file added
BIN
+108 Bytes
test/integration/render-tests/zoom-visibility/out-of-range/expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
53 changes: 53 additions & 0 deletions
53
test/integration/render-tests/zoom-visibility/out-of-range/style.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
{ | ||
"version": 8, | ||
"metadata": { | ||
"test": { | ||
"width": 64, | ||
"height": 64, | ||
"operations": [ | ||
[ | ||
"setZoom", | ||
1.5 | ||
], | ||
[ | ||
"wait" | ||
], | ||
[ | ||
"setLayerZoomRange", | ||
"circle", | ||
1, | ||
2 | ||
], | ||
[ | ||
"wait" | ||
], | ||
[ | ||
"setZoom", | ||
2.1 | ||
], | ||
[ | ||
"wait" | ||
] | ||
] | ||
} | ||
}, | ||
"sources": { | ||
"geojson": { | ||
"type": "geojson", | ||
"data": { | ||
"type": "Point", | ||
"coordinates": [ | ||
0, | ||
0 | ||
] | ||
} | ||
} | ||
}, | ||
"layers": [ | ||
{ | ||
"id": "circle", | ||
"type": "circle", | ||
"source": "geojson" | ||
} | ||
] | ||
} |
Binary file added
BIN
+221 Bytes
test/integration/render-tests/zoom-visibility/was-above/expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
48 changes: 48 additions & 0 deletions
48
test/integration/render-tests/zoom-visibility/was-above/style.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
{ | ||
"version": 8, | ||
"metadata": { | ||
"test": { | ||
"width": 64, | ||
"height": 64, | ||
"operations": [ | ||
[ | ||
"setZoom", | ||
2.1 | ||
], | ||
[ | ||
"wait" | ||
], | ||
[ | ||
"setLayerZoomRange", | ||
"circle", | ||
1, | ||
3 | ||
], | ||
[ | ||
"wait" | ||
] | ||
] | ||
} | ||
}, | ||
"sources": { | ||
"geojson": { | ||
"type": "geojson", | ||
"data": { | ||
"type": "Point", | ||
"coordinates": [ | ||
0, | ||
0 | ||
] | ||
} | ||
} | ||
}, | ||
"layers": [ | ||
{ | ||
"id": "circle", | ||
"type": "circle", | ||
"source": "geojson", | ||
"minzoom": 1, | ||
"maxzoom": 2 | ||
} | ||
] | ||
} |
Binary file added
BIN
+221 Bytes
test/integration/render-tests/zoom-visibility/was-below/expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
48 changes: 48 additions & 0 deletions
48
test/integration/render-tests/zoom-visibility/was-below/style.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
{ | ||
"version": 8, | ||
"metadata": { | ||
"test": { | ||
"width": 64, | ||
"height": 64, | ||
"operations": [ | ||
[ | ||
"setZoom", | ||
0.9 | ||
], | ||
[ | ||
"wait" | ||
], | ||
[ | ||
"setLayerZoomRange", | ||
"circle", | ||
0, | ||
2 | ||
], | ||
[ | ||
"wait" | ||
] | ||
] | ||
} | ||
}, | ||
"sources": { | ||
"geojson": { | ||
"type": "geojson", | ||
"data": { | ||
"type": "Point", | ||
"coordinates": [ | ||
0, | ||
0 | ||
] | ||
} | ||
} | ||
}, | ||
"layers": [ | ||
{ | ||
"id": "circle", | ||
"type": "circle", | ||
"source": "geojson", | ||
"minzoom": 1, | ||
"maxzoom": 2 | ||
} | ||
] | ||
} |