Skip to content

Commit 312adb1

Browse files
woodroofgithub-actions[bot]
authored andcommitted
Render test for appearance change for two layers with the same source
GitOrigin-RevId: 6566fa85439c1f1affc6f88923519db424d55392
1 parent d6d6b94 commit 312adb1

2 files changed

Lines changed: 76 additions & 0 deletions

File tree

3.76 KB
Loading
Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
{
2+
"version": 8,
3+
"metadata": {
4+
"test": {
5+
"allowed": 0.00074,
6+
"pixelRatio": 2,
7+
"height": 64,
8+
"width": 64,
9+
"operations": [
10+
["wait"],
11+
["setZoom", 0.5]
12+
]
13+
}
14+
},
15+
"camera": {"camera-projection": "orthographic"},
16+
"sources": {
17+
"test_source": {
18+
"type": "geojson",
19+
"data": {
20+
"type": "GeometryCollection",
21+
"geometries": [
22+
{
23+
"type": "Point",
24+
"coordinates": [
25+
0, 0
26+
]
27+
},
28+
{
29+
"type": "Point",
30+
"coordinates": [
31+
-20, 0
32+
]
33+
}
34+
]
35+
}
36+
}
37+
},
38+
"sprite": "local://sprites/sprite",
39+
"glyphs": "local://glyphs/{fontstack}/{range}.pbf",
40+
"layers": [
41+
{
42+
"id": "test_layer1",
43+
"type": "symbol",
44+
"source": "test_source",
45+
"layout": {
46+
"icon-image": "bank-12",
47+
"icon-offset": [-15, 0]
48+
},
49+
"appearances": [
50+
{
51+
"condition": [">=", ["zoom"], 0.5],
52+
"properties": {
53+
"icon-size": 2
54+
}
55+
}
56+
]
57+
},
58+
{
59+
"id": "test_layer2",
60+
"type": "symbol",
61+
"source": "test_source",
62+
"layout": {
63+
"icon-image": "bank-12",
64+
"icon-offset": [15, 0]
65+
},
66+
"appearances": [
67+
{
68+
"condition": [">=", ["zoom"], 0.5],
69+
"properties": {
70+
"icon-size": 2
71+
}
72+
}
73+
]
74+
}
75+
]
76+
}

0 commit comments

Comments
 (0)