Skip to content

Commit 0a15d90

Browse files
akoylasargithub-actions[bot]
authored andcommitted
[MAPS3D-1911] Add clip layer support render tests for building layer
(internal-7555) GitOrigin-RevId: db16bcc1919c20cd1afe5d01c0815906d4cc0fdc
1 parent 370b7da commit 0a15d90

File tree

7 files changed

+792
-1
lines changed

7 files changed

+792
-1
lines changed

test/ignores/all.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,12 @@ const skip = [
265265
"render-tests/model-layer/model-elevation-reference/hd-road-markup/with-elevation-id",
266266
"render-tests/building/terrain/terrain-toggle-conflation-works",
267267
"render-tests/building/terrain/terrain-unsupported",
268-
"render-tests/building/globe-unsupported"
268+
"render-tests/building/globe-unsupported",
269+
270+
// Ignore procedural buiding clip layer render tests for now.
271+
"render-tests/building/clip-layer/default",
272+
"render-tests/building/clip-layer/lower-order-clipping-skipped",
273+
"render-tests/building/clip-layer/with-FE-and-landmarks"
269274
];
270275

271276
export default {todo, skip};
50.8 KB
Loading
Lines changed: 226 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,226 @@
1+
{
2+
"version": 8,
3+
"metadata": {
4+
"test": {
5+
"allowed": 0.0016,
6+
"width": 512,
7+
"height": 512,
8+
"operations": [
9+
["wait"]
10+
]
11+
}
12+
},
13+
"lights": [
14+
{
15+
"type": "ambient",
16+
"id": "environment"
17+
},
18+
{
19+
"type": "directional",
20+
"id": "sun_light",
21+
"properties": {
22+
"cast-shadows": true,
23+
"intensity": 0.8599999904632569,
24+
"direction": [
25+
311.9219970703125,
26+
82.37799835205078
27+
]
28+
}
29+
}
30+
],
31+
"sources": {
32+
"composite": {
33+
"type": "vector",
34+
"maxzoom": 16,
35+
"tiles": [
36+
"local://tiles/{z}-{x}-{y}.vector.pbf"
37+
]
38+
},
39+
"eraser": {
40+
"type": "geojson",
41+
"data": {
42+
"type": "FeatureCollection",
43+
"features": [
44+
{
45+
"type": "Feature",
46+
"properties": {},
47+
"geometry": {
48+
"coordinates": [
49+
[
50+
[
51+
-73.7987642254511,
52+
40.655044291000536
53+
],
54+
[
55+
-73.7987642254511,
56+
40.63371667325009
57+
],
58+
[
59+
-73.77146573660352,
60+
40.63371667325009
61+
],
62+
[
63+
-73.77146573660352,
64+
40.655044291000536
65+
],
66+
[
67+
-73.7987642254511,
68+
40.655044291000536
69+
]
70+
]
71+
],
72+
"type": "Polygon"
73+
}
74+
},
75+
{
76+
"type": "Feature",
77+
"properties": {},
78+
"geometry": {
79+
"coordinates": [
80+
[
81+
[
82+
11.574414043765472,
83+
48.139688295627366
84+
],
85+
[
86+
11.573990853708949,
87+
48.13907305935794
88+
],
89+
[
90+
11.575502246765467,
91+
48.13897220025004
92+
],
93+
[
94+
11.575691170898523,
95+
48.1393252062617
96+
],
97+
[
98+
11.574414043765472,
99+
48.139688295627366
100+
]
101+
]
102+
],
103+
"type": "Polygon"
104+
}
105+
},
106+
{
107+
"type": "Feature",
108+
"properties": {},
109+
"geometry": {
110+
"coordinates": [
111+
[
112+
[
113+
11.573008450067931,
114+
48.13832669751798
115+
],
116+
[
117+
11.57266838663034,
118+
48.1377971772917
119+
],
120+
[
121+
11.574852349596938,
122+
48.13722730656525
123+
],
124+
[
125+
11.575215083931369,
126+
48.13806950266144
127+
],
128+
[
129+
11.573953070728464,
130+
48.13834182658718
131+
],
132+
[
133+
11.573008450067931,
134+
48.13832669751798
135+
]
136+
]
137+
],
138+
"type": "Polygon"
139+
}
140+
}
141+
]
142+
}
143+
}
144+
},
145+
"zoom": 16.1,
146+
"center": [
147+
11.574606,
148+
48.138809
149+
],
150+
"layers": [
151+
{
152+
"type": "background",
153+
"paint": {
154+
"background-color": [
155+
"interpolate",
156+
[
157+
"linear"
158+
],
159+
[
160+
"zoom"
161+
],
162+
11.0,
163+
[
164+
"rgba",
165+
239.00001525878907,
166+
233.00001525878907,
167+
225.00001525878907,
168+
1.0
169+
],
170+
13.0,
171+
[
172+
"rgba",
173+
230.00001525878907,
174+
228.00001525878907,
175+
224.00001525878907,
176+
1.0
177+
]
178+
]
179+
},
180+
"id": "land"
181+
},
182+
{
183+
"id": "building",
184+
"type": "building",
185+
"source": "composite",
186+
"source-layer": "procedural_buildings",
187+
"minzoom": 15,
188+
"layout": {
189+
"building-roof-shape": "parapet",
190+
"building-height": [
191+
"number",
192+
[
193+
"get",
194+
"height"
195+
]
196+
],
197+
"building-base": [
198+
"number",
199+
[
200+
"get",
201+
"min_height"
202+
]
203+
]
204+
},
205+
"paint": {
206+
"building-color": [
207+
"match",
208+
["get", "building-part"],
209+
"wall",
210+
["hsl", 41, 90, 90],
211+
"roof",
212+
["hsl", 25, 43, 80],
213+
["hsl", 41, 90, 90]
214+
],
215+
"building-ambient-occlusion-intensity": 1
216+
}
217+
},
218+
{
219+
"id": "eraser",
220+
"type": "clip",
221+
"source": "eraser",
222+
"minzoom": 16,
223+
"maxzoom": 17
224+
}
225+
]
226+
}
59.2 KB
Loading

0 commit comments

Comments
 (0)