Skip to content

Commit 7d122bd

Browse files
sakrolekgithub-actions[bot]
authored andcommitted
Add render test for an appearance icon shaped to fit vertical text
GitOrigin-RevId: cef7833e6419e4fad9f24b5112002c0813b85059
1 parent 73c5671 commit 7d122bd

File tree

3 files changed

+61
-0
lines changed

3 files changed

+61
-0
lines changed

test/ignores/all.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,9 @@ const skip = [
144144
"render-tests/icon-size/depends-on-coalesce-image",
145145
"render-tests/appearance/icon-size-depends-on-coalesce-image",
146146

147+
// Broken in similar way as gl-native https://mapbox.atlassian.net/browse/MAPSNAT-3474
148+
"render-tests/appearance/icon-text-fit-vertical/other-image",
149+
147150
// Broken in similar way as gl-native https://mapbox.atlassian.net/browse/MAPSNAT-3462
148151
"render-tests/appearance/no-icon-size-in-appearance-non-default-layout-icon-size",
149152

1.36 KB
Loading
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
{
2+
"version": 8,
3+
"metadata": {
4+
"test": {
5+
"width": 128,
6+
"height": 128
7+
}
8+
},
9+
"sources": {
10+
"geojson": {
11+
"type": "geojson",
12+
"data": {
13+
"type": "FeatureCollection",
14+
"features": [{
15+
"type": "Feature",
16+
"properties": {
17+
"anchor": "center"
18+
},
19+
"geometry": {
20+
"type": "Point",
21+
"coordinates": [ 0, 0 ]
22+
}
23+
}]
24+
}
25+
}
26+
},
27+
"sprite": "local://sprites/stretch",
28+
"glyphs": "local://glyphs/{fontstack}/{range}.pbf",
29+
"layers": [
30+
{
31+
"id": "icons",
32+
"type": "symbol",
33+
"source": "geojson",
34+
"layout": {
35+
"text-size": 20,
36+
"text-field": "ホテル",
37+
"text-font": [
38+
"literal",
39+
[
40+
"NotoCJK"
41+
]
42+
],
43+
"text-writing-mode": ["vertical"],
44+
"icon-text-fit": "both",
45+
"icon-image": "three-part"
46+
},
47+
"appearances": [
48+
{
49+
"name": "test",
50+
"condition": true,
51+
"properties": {
52+
"icon-image": "nine-part-content"
53+
}
54+
}
55+
]
56+
}
57+
]
58+
}

0 commit comments

Comments
 (0)