Skip to content

Commit

Permalink
Add render test for images on a globe
Browse files Browse the repository at this point in the history
  • Loading branch information
kubapelc committed May 21, 2024
1 parent 62d0205 commit 642b9cd
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 0 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
57 changes: 57 additions & 0 deletions test/integration/render/tests/projection/globe/image/style.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
{
"version": 8,
"metadata": {
"test": {
"description": "This test ensures that images that are placed into the root tile do not stretch all the way to the poles.",
"width": 64,
"height": 256,
"projection": "globe"
}
},
"zoom": 0.5,
"center": [
0,
45
],
"sources": {
"image": {
"type": "image",
"coordinates": [
[
-270,
-80
],
[
90,
-80
],
[
90,
80
],
[
-270,
80
]
],
"url": "local://image/0.png"
}
},
"layers": [
{
"id": "background",
"type": "background",
"paint": {
"background-color": "green"
}
},
{
"id": "image",
"type": "raster",
"source": "image",
"paint": {
"raster-fade-duration": 0
}
}
]
}

0 comments on commit 642b9cd

Please sign in to comment.