-
-
Notifications
You must be signed in to change notification settings - Fork 783
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add render test for images on a globe
- Loading branch information
Showing
2 changed files
with
57 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.
57 changes: 57 additions & 0 deletions
57
test/integration/render/tests/projection/globe/image/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,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 | ||
} | ||
} | ||
] | ||
} |