Skip to content

Commit d89d0d8

Browse files
sakrolekgithub-actions[bot]
authored andcommitted
Add render tests to test appearances in combination with zero icon-size.
GitOrigin-RevId: 0564a536277df89cf888da0a09ab7210f9b96526
1 parent d35d6bb commit d89d0d8

File tree

4 files changed

+112
-0
lines changed

4 files changed

+112
-0
lines changed
143 Bytes
Loading
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
{
2+
"version": 8,
3+
"metadata": {
4+
"test": {
5+
"allowed": 0.00074,
6+
"pixelRatio": 2,
7+
"height": 64,
8+
"width": 64
9+
}
10+
},
11+
"camera": {"camera-projection": "orthographic"},
12+
"sources": {
13+
"geojson": {
14+
"type": "geojson",
15+
"data": {
16+
"type": "FeatureCollection",
17+
"features": [
18+
{
19+
"type": "Feature",
20+
"properties": {
21+
"image": "bank-12"
22+
},
23+
"geometry": {
24+
"type": "Point",
25+
"coordinates": [
26+
0,
27+
0
28+
]
29+
}
30+
}
31+
]
32+
}
33+
}
34+
},
35+
"sprite": "local://sprites/sprite",
36+
"layers": [
37+
{
38+
"id": "icon",
39+
"type": "symbol",
40+
"source": "geojson",
41+
"layout": {
42+
"icon-image": "bank-12",
43+
"icon-size": 1
44+
},
45+
"appearances": [
46+
{
47+
"name": "test",
48+
"condition": true,
49+
"properties": {
50+
"icon-size": 0
51+
}
52+
}
53+
]
54+
}
55+
]
56+
}
1.6 KB
Loading
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
{
2+
"version": 8,
3+
"metadata": {
4+
"test": {
5+
"allowed": 0.00074,
6+
"pixelRatio": 2,
7+
"height": 64,
8+
"width": 64
9+
}
10+
},
11+
"camera": {"camera-projection": "orthographic"},
12+
"sources": {
13+
"geojson": {
14+
"type": "geojson",
15+
"data": {
16+
"type": "FeatureCollection",
17+
"features": [
18+
{
19+
"type": "Feature",
20+
"properties": {
21+
"image": "bank-12"
22+
},
23+
"geometry": {
24+
"type": "Point",
25+
"coordinates": [
26+
0,
27+
0
28+
]
29+
}
30+
}
31+
]
32+
}
33+
}
34+
},
35+
"sprite": "local://sprites/sprite",
36+
"layers": [
37+
{
38+
"id": "icon",
39+
"type": "symbol",
40+
"source": "geojson",
41+
"layout": {
42+
"icon-image": "bank-12",
43+
"icon-size": 0
44+
},
45+
"appearances": [
46+
{
47+
"name": "test",
48+
"condition": true,
49+
"properties": {
50+
"icon-size": 1
51+
}
52+
}
53+
]
54+
}
55+
]
56+
}

0 commit comments

Comments
 (0)