Skip to content

Commit f58886f

Browse files
aleksigrongithub-actions[bot]
authored andcommitted
Add debug wireframe render tests
GitOrigin-RevId: b902b62c6ff2f0cef3ffcd9a9c460de2f07299dd
1 parent b48713d commit f58886f

10 files changed

Lines changed: 832 additions & 0 deletions

File tree

22.4 KB
Loading
Lines changed: 119 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,119 @@
1+
{
2+
"version": 8,
3+
"metadata": {
4+
"test": {
5+
"allowed": 0.0021,
6+
"width": 512,
7+
"height": 512,
8+
"showLayers3DWireframe": true,
9+
"operations": [
10+
["wait"]
11+
]
12+
}
13+
},
14+
"lights": [
15+
{
16+
"type": "ambient",
17+
"id": "environment"
18+
},
19+
{
20+
"type": "directional",
21+
"id": "sun_light",
22+
"properties": {
23+
"cast-shadows": true,
24+
"intensity": 0.9,
25+
"direction": [
26+
311.0,
27+
82.0
28+
]
29+
}
30+
}
31+
],
32+
"sources": {
33+
"composite": {
34+
"type": "vector",
35+
"maxzoom": 16,
36+
"tiles": [
37+
"local://tiles/{z}-{x}-{y}.vector.pbf"
38+
]
39+
}
40+
},
41+
"zoom": 19,
42+
"pitch": 55,
43+
"bearing": 40,
44+
"center": [
45+
11.5772808,
46+
48.1390948
47+
],
48+
"layers": [
49+
{
50+
"type": "background",
51+
"paint": {
52+
"background-color": [
53+
"interpolate",
54+
[
55+
"linear"
56+
],
57+
[
58+
"zoom"
59+
],
60+
11.0,
61+
[
62+
"rgba",
63+
239.00001525878907,
64+
233.00001525878907,
65+
225.00001525878907,
66+
1.0
67+
],
68+
13.0,
69+
[
70+
"rgba",
71+
230.00001525878907,
72+
228.00001525878907,
73+
224.00001525878907,
74+
1.0
75+
]
76+
]
77+
},
78+
"id": "land"
79+
},
80+
{
81+
"id": "building",
82+
"type": "building",
83+
"source": "composite",
84+
"source-layer": "procedural_buildings",
85+
"minzoom": 15,
86+
"layout": {
87+
"building-roof-shape": "parapet",
88+
"building-height": [
89+
"number",
90+
[
91+
"get",
92+
"height"
93+
]
94+
],
95+
"building-base": [
96+
"number",
97+
[
98+
"get",
99+
"min_height"
100+
]
101+
]
102+
},
103+
"paint": {
104+
"building-color": [
105+
"match",
106+
["get", "building-part"],
107+
"wall",
108+
["hsl", 41, 90, 90],
109+
"roof",
110+
["hsl", 25, 43, 80],
111+
"window",
112+
["hsl", 198, 22.4, 64.1],
113+
["hsl", 41, 90, 90]
114+
],
115+
"building-ambient-occlusion-intensity": 1
116+
}
117+
}
118+
]
119+
}
32.5 KB
Loading
Lines changed: 137 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,137 @@
1+
{
2+
"version": 8,
3+
"metadata": {
4+
"test": {
5+
"height": 512,
6+
"width": 512,
7+
"allowed": 0.0017,
8+
"showLayers3DWireframe": true
9+
}
10+
},
11+
"sources": {
12+
"geojson": {
13+
"type": "geojson",
14+
"data": {
15+
"type": "FeatureCollection",
16+
"features": [
17+
{
18+
"type": "Feature",
19+
"properties": {
20+
"property": 30
21+
},
22+
"geometry": {
23+
"type": "Polygon",
24+
"coordinates": [
25+
[
26+
[
27+
0.0,
28+
0.0
29+
],
30+
[
31+
0.00027,
32+
-0.00015
33+
],
34+
[
35+
0.00015,
36+
-0.00027
37+
],
38+
[
39+
0.0,
40+
-0.0003
41+
],
42+
[
43+
-0.00015,
44+
-0.00024
45+
],
46+
[
47+
-0.00024,
48+
-0.00015
49+
],
50+
[
51+
-0.000285,
52+
-0.00003
53+
],
54+
55+
[
56+
-0.000285,
57+
0.00003
58+
],
59+
[
60+
-0.00024,
61+
0.00015
62+
],
63+
[
64+
-0.00015,
65+
0.00024
66+
],
67+
[
68+
0.0,
69+
0.0003
70+
],
71+
[
72+
0.00015,
73+
0.00027
74+
],
75+
[
76+
0.00027,
77+
0.00015
78+
],
79+
[
80+
0.0,
81+
0.0
82+
]
83+
],
84+
[
85+
[
86+
0.00006,
87+
0.00012
88+
],
89+
[
90+
0.00009,
91+
0.00015
92+
],
93+
[
94+
0.00006,
95+
0.00018
96+
],
97+
[
98+
0.00003,
99+
0.00015
100+
],
101+
[
102+
0.00006,
103+
0.00012
104+
]
105+
]
106+
]
107+
}
108+
}
109+
]
110+
}
111+
}
112+
},
113+
"pitch": 45,
114+
"bearing": 45,
115+
"zoom": 18.7,
116+
"layers": [
117+
{
118+
"id": "bg",
119+
"type": "background",
120+
"paint": {
121+
"background-color": "#eeeeee"
122+
}
123+
},
124+
{
125+
"id": "extrusion",
126+
"type": "fill-extrusion",
127+
"source": "geojson",
128+
"paint": {
129+
"fill-extrusion-height": 30,
130+
"fill-extrusion-color": "#dddddd"
131+
},
132+
"layout": {
133+
"fill-extrusion-edge-radius": 0.7
134+
}
135+
}
136+
]
137+
}
23.3 KB
Loading
Lines changed: 134 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,134 @@
1+
{
2+
"version": 8,
3+
"metadata": {
4+
"test": {
5+
"height": 512,
6+
"width": 512,
7+
"allowed": 0.002,
8+
"showLayers3DWireframe": true
9+
}
10+
},
11+
"sources": {
12+
"geojson": {
13+
"type": "geojson",
14+
"data": {
15+
"type": "FeatureCollection",
16+
"features": [
17+
{
18+
"type": "Feature",
19+
"properties": {
20+
"property": 30
21+
},
22+
"geometry": {
23+
"type": "Polygon",
24+
"coordinates": [
25+
[
26+
[
27+
0.0,
28+
0.0
29+
],
30+
[
31+
0.00027,
32+
-0.00015
33+
],
34+
[
35+
0.00015,
36+
-0.00027
37+
],
38+
[
39+
0.0,
40+
-0.0003
41+
],
42+
[
43+
-0.00015,
44+
-0.00024
45+
],
46+
[
47+
-0.00024,
48+
-0.00015
49+
],
50+
[
51+
-0.000285,
52+
-0.00003
53+
],
54+
55+
[
56+
-0.000285,
57+
0.00003
58+
],
59+
[
60+
-0.00024,
61+
0.00015
62+
],
63+
[
64+
-0.00015,
65+
0.00024
66+
],
67+
[
68+
0.0,
69+
0.0003
70+
],
71+
[
72+
0.00015,
73+
0.00027
74+
],
75+
[
76+
0.00027,
77+
0.00015
78+
],
79+
[
80+
0.0,
81+
0.0
82+
]
83+
],
84+
[
85+
[
86+
0.00006,
87+
0.00012
88+
],
89+
[
90+
0.00009,
91+
0.00015
92+
],
93+
[
94+
0.00006,
95+
0.00018
96+
],
97+
[
98+
0.00003,
99+
0.00015
100+
],
101+
[
102+
0.00006,
103+
0.00012
104+
]
105+
]
106+
]
107+
}
108+
}
109+
]
110+
}
111+
}
112+
},
113+
"pitch": 45,
114+
"bearing": 45,
115+
"zoom": 18.7,
116+
"layers": [
117+
{
118+
"id": "bg",
119+
"type": "background",
120+
"paint": {
121+
"background-color": "#eeeeee"
122+
}
123+
},
124+
{
125+
"id": "extrusion",
126+
"type": "fill-extrusion",
127+
"source": "geojson",
128+
"paint": {
129+
"fill-extrusion-height": 30,
130+
"fill-extrusion-color": "#dddddd"
131+
}
132+
}
133+
]
134+
}
74.2 KB
Loading

0 commit comments

Comments
 (0)