Skip to content

Commit 720c748

Browse files
lasselammigithub-actions[bot]
authored andcommitted
Add high pitch render test for `line-elevation-reference:
GitOrigin-RevId: 5f62a42d5622777a2636060346ac65b5f7ebb1f5
1 parent 573836a commit 720c748

6 files changed

Lines changed: 171 additions & 0 deletions

File tree

5.34 KB
Loading
Lines changed: 171 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,171 @@
1+
{
2+
"version": 8,
3+
"metadata": {
4+
"test": {
5+
"height": 256,
6+
"operations": [
7+
[
8+
"wait"
9+
]
10+
],
11+
"_comment": "Ground-elevated line over terrain at pitch 55° must remain visible."
12+
}
13+
},
14+
"center": [
15+
13.5735,
16+
47.28875
17+
],
18+
"zoom": 16,
19+
"pitch": 55,
20+
"terrain": {
21+
"source": "rgbterrain"
22+
},
23+
"sources": {
24+
"rgbterrain": {
25+
"type": "raster-dem",
26+
"tiles": [
27+
"local://tiles/{z}-{x}-{y}.terrain.png"
28+
],
29+
"maxzoom": 15,
30+
"tileSize": 256
31+
},
32+
"line": {
33+
"type": "geojson",
34+
"data": {
35+
"type": "Feature",
36+
"properties": {},
37+
"geometry": {
38+
"type": "LineString",
39+
"coordinates": [
40+
[
41+
13.5695,
42+
47.284
43+
],
44+
[
45+
13.569833,
46+
47.284396
47+
],
48+
[
49+
13.570167,
50+
47.284792
51+
],
52+
[
53+
13.5705,
54+
47.285187
55+
],
56+
[
57+
13.570833,
58+
47.285583
59+
],
60+
[
61+
13.571167,
62+
47.285979
63+
],
64+
[
65+
13.5715,
66+
47.286375
67+
],
68+
[
69+
13.571833,
70+
47.286771
71+
],
72+
[
73+
13.572167,
74+
47.287167
75+
],
76+
[
77+
13.5725,
78+
47.287562
79+
],
80+
[
81+
13.572833,
82+
47.287958
83+
],
84+
[
85+
13.573167,
86+
47.288354
87+
],
88+
[
89+
13.5735,
90+
47.28875
91+
],
92+
[
93+
13.573833,
94+
47.289146
95+
],
96+
[
97+
13.574167,
98+
47.289542
99+
],
100+
[
101+
13.5745,
102+
47.289938
103+
],
104+
[
105+
13.574833,
106+
47.290333
107+
],
108+
[
109+
13.575167,
110+
47.290729
111+
],
112+
[
113+
13.5755,
114+
47.291125
115+
],
116+
[
117+
13.575833,
118+
47.291521
119+
],
120+
[
121+
13.576167,
122+
47.291917
123+
],
124+
[
125+
13.5765,
126+
47.292313
127+
],
128+
[
129+
13.576833,
130+
47.292708
131+
],
132+
[
133+
13.577167,
134+
47.293104
135+
],
136+
[
137+
13.5775,
138+
47.2935
139+
]
140+
]
141+
}
142+
}
143+
}
144+
},
145+
"layers": [
146+
{
147+
"id": "background",
148+
"type": "background",
149+
"paint": {
150+
"background-color": "rgb(233, 229, 220)"
151+
}
152+
},
153+
{
154+
"id": "line",
155+
"type": "line",
156+
"source": "line",
157+
"layout": {
158+
"line-elevation-reference": "ground",
159+
"line-cap": "round",
160+
"line-join": "round"
161+
},
162+
"paint": {
163+
"line-width": 12,
164+
"line-color": "rgba(0,128,255,1)",
165+
"line-z-offset": 0.01,
166+
"line-depth-occlusion-factor": 0.5
167+
}
168+
}
169+
],
170+
"bearing": 0
171+
}
83.6 KB
Loading
102 KB
Loading
96.5 KB
Loading
101 KB
Loading

0 commit comments

Comments
 (0)