Fix ImageSource not rendering across world copies (#4508)

This commit is contained in:
Taku Fukada
2026-08-28 11:48:01 +09:00
committed by GitHub
parent cbe4681ef1
commit c3b588321b
6 changed files with 67 additions and 8 deletions

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 186 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 548 B

View 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"
}
}
]
}