Fix ImageSource not rendering across world copies (#4508)
This commit is contained in:
Binary file not shown.
BIN
metrics/integration/image/world-wrap.png
Normal file
BIN
metrics/integration/image/world-wrap.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 186 B |
BIN
metrics/integration/render-tests/image/world-wrap/expected.png
Normal file
BIN
metrics/integration/render-tests/image/world-wrap/expected.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 548 B |
56
metrics/integration/render-tests/image/world-wrap/style.json
Normal file
56
metrics/integration/render-tests/image/world-wrap/style.json
Normal file
@@ -0,0 +1,56 @@
|
||||
{
|
||||
"version": 8,
|
||||
"metadata": {
|
||||
"test": {
|
||||
"width": 256,
|
||||
"height": 128
|
||||
}
|
||||
},
|
||||
"center": [
|
||||
180,
|
||||
0
|
||||
],
|
||||
"zoom": 1,
|
||||
"sources": {
|
||||
"image": {
|
||||
"type": "image",
|
||||
"coordinates": [
|
||||
[
|
||||
-180,
|
||||
85.05112878
|
||||
],
|
||||
[
|
||||
180,
|
||||
85.05112878
|
||||
],
|
||||
[
|
||||
180,
|
||||
-85.05112878
|
||||
],
|
||||
[
|
||||
-180,
|
||||
-85.05112878
|
||||
]
|
||||
],
|
||||
"url": "local://image/world-wrap.png"
|
||||
}
|
||||
},
|
||||
"layers": [
|
||||
{
|
||||
"id": "background",
|
||||
"type": "background",
|
||||
"paint": {
|
||||
"background-color": "#ff00ff"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "image",
|
||||
"type": "raster",
|
||||
"source": "image",
|
||||
"paint": {
|
||||
"raster-fade-duration": 0,
|
||||
"raster-resampling": "nearest"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user