🌐 AI搜索 & 代理 主页
Skip to content

Commit 562041f

Browse files
sakrolekgithub-actions[bot]
authored andcommitted
Add render test to check that appearance without icon-size falls back to icon-size defined in layout props
GitOrigin-RevId: f87007ee9ecd8f2011883429de02ea5f1c2bdab8
1 parent d89d0d8 commit 562041f

File tree

3 files changed

+42
-0
lines changed

3 files changed

+42
-0
lines changed

test/ignores/all.js

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

144+
// Broken in similar way as gl-native https://mapbox.atlassian.net/browse/MAPSNAT-3462
145+
"render-tests/appearance/no-icon-size-in-appearance-non-default-layout-icon-size",
146+
144147
// Mapbox-gl-js does not support tile-mode
145148
"render-tests/icon-text-fit/text-variable-anchor-tile-map-mode",
146149
"render-tests/map-mode/tile",
1.79 KB
Loading
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
{
2+
"version": 8,
3+
"metadata": {
4+
"test": {
5+
"width": 64,
6+
"height": 64
7+
}
8+
},
9+
"sources": {
10+
"geojson": {
11+
"type": "geojson",
12+
"data": {
13+
"type": "Point",
14+
"coordinates": [
15+
0,
16+
0
17+
]
18+
}
19+
}
20+
},
21+
"sprite": "local://sprites/sprite",
22+
"layers": [
23+
{
24+
"id": "symbol",
25+
"type": "symbol",
26+
"source": "geojson",
27+
"layout": {
28+
"icon-image": "rocket-12",
29+
"icon-size": 2
30+
},
31+
"appearances": [{
32+
"condition": true,
33+
"properties": {
34+
"icon-rotate": 90
35+
}
36+
}]
37+
}
38+
]
39+
}

0 commit comments

Comments
 (0)