Update pitched offset test to match maplibre-gl-js (#4336)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
Harel M
2026-07-13 14:10:41 +03:00
committed by GitHub
parent 4fd61f40c7
commit eedb4def3d
4 changed files with 16 additions and 43 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 39 KiB

After

Width:  |  Height:  |  Size: 54 KiB

View File

@@ -26,7 +26,7 @@
} }
} }
}, },
"sprite": "local://sprites/almccon", "sprite": "local://sprites/sprite",
"layers": [ "layers": [
{ {
"id": "background", "id": "background",
@@ -56,7 +56,8 @@
"paint": { "paint": {
"line-color": "hsl(0, 0%, 100%)", "line-color": "hsl(0, 0%, 100%)",
"line-dasharray": [4, 12], "line-dasharray": [4, 12],
"line-offset": 7 "line-offset": 25,
"line-width": 3
} }
}, },
{ {
@@ -67,7 +68,8 @@
"paint": { "paint": {
"line-color": "hsl(0, 0%, 100%)", "line-color": "hsl(0, 0%, 100%)",
"line-dasharray": [4, 12], "line-dasharray": [4, 12],
"line-offset": -7 "line-offset": -25,
"line-width": 3
} }
}, },
{ {
@@ -76,16 +78,14 @@
"source": "geojson", "source": "geojson",
"layout": { "layout": {
"icon-allow-overlap": true, "icon-allow-overlap": true,
"icon-image": "through", "icon-image": "oneway",
"icon-offset": [0, 0], "icon-offset": [0, 0],
"icon-rotate": 90,
"icon-rotation-alignment": "map", "icon-rotation-alignment": "map",
"icon-pitch-alignment": "map", "icon-pitch-alignment": "map",
"icon-size": 1, "icon-size": 5,
"symbol-placement": "line", "symbol-placement": "line",
"symbol-spacing": 300 "symbol-spacing": 300
}, }
"paint": {"icon-opacity": 0.8}
}, },
{ {
"id": "road-arrows-right", "id": "road-arrows-right",
@@ -93,16 +93,14 @@
"source": "geojson", "source": "geojson",
"layout": { "layout": {
"icon-allow-overlap": true, "icon-allow-overlap": true,
"icon-image": "through", "icon-image": "oneway",
"icon-offset": [50.339999999999996, 0], "icon-offset": [0, 10],
"icon-rotate": 90,
"icon-rotation-alignment": "map", "icon-rotation-alignment": "map",
"icon-pitch-alignment": "map", "icon-pitch-alignment": "map",
"icon-size": 1, "icon-size": 5,
"symbol-placement": "line", "symbol-placement": "line",
"symbol-spacing": 300 "symbol-spacing": 300
}, }
"paint": {"icon-opacity": 0.8}
}, },
{ {
"id": "road-arrows-left", "id": "road-arrows-left",
@@ -110,16 +108,14 @@
"source": "geojson", "source": "geojson",
"layout": { "layout": {
"icon-allow-overlap": true, "icon-allow-overlap": true,
"icon-image": "through", "icon-image": "oneway",
"icon-offset": [-53.339999999999996, 0], "icon-offset": [0, -10],
"icon-rotate": 90,
"icon-rotation-alignment": "map", "icon-rotation-alignment": "map",
"icon-pitch-alignment": "map", "icon-pitch-alignment": "map",
"icon-size": 1, "icon-size": 5,
"symbol-placement": "line", "symbol-placement": "line",
"symbol-spacing": 300 "symbol-spacing": 300
}, }
"paint": {"icon-opacity": 0.8}
} }
] ]
} }

View File

@@ -1,23 +0,0 @@
{
"through": {
"width": 48,
"height": 64,
"x": 531,
"y": 64,
"pixelRatio": 1
},
"through;right": {
"width": 48,
"height": 64,
"x": 579,
"y": 64,
"pixelRatio": 1
},
"through;slight_right": {
"width": 48,
"height": 64,
"x": 627,
"y": 64,
"pixelRatio": 1
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.1 KiB