Skip to content

Commit 4a2fa3d

Browse files
mpulkki-mapboxgithub-actions[bot]
authored andcommitted
Add render test
GitOrigin-RevId: 913bdccbde0e9d03cfdfe293eecf2a9281bc239e
1 parent d8160cc commit 4a2fa3d

File tree

3 files changed

+140
-0
lines changed

3 files changed

+140
-0
lines changed
4.67 KB
Loading
Lines changed: 140 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,140 @@
1+
{
2+
"version": 8,
3+
"metadata": {
4+
"test": {
5+
"mapMode": "static",
6+
"allowed": 0.00025,
7+
"spriteFormat": "raster"
8+
}
9+
},
10+
"center": [
11+
11.996382,
12+
57.697968
13+
],
14+
"zoom": 19.40,
15+
"pitch": 0,
16+
"bearing": 0,
17+
"sources": {
18+
"hd-roads": {
19+
"type": "vector",
20+
"tileSize": 512,
21+
"maxzoom": 18,
22+
"tiles": [
23+
"local://tiles/3d-intersections/{z}-{x}-{y}.mvt"
24+
]
25+
}
26+
},
27+
"sprite": "local://sprites/3d_intersections",
28+
"lights": [
29+
{
30+
"id": "ambient",
31+
"type": "ambient",
32+
"properties": {
33+
"color": "hsl(0, 0%, 100%)",
34+
"intensity": 0.8
35+
}
36+
},
37+
{
38+
"id": "directional",
39+
"type": "directional",
40+
"properties": {
41+
"direction": [
42+
"literal",
43+
[
44+
180,
45+
20
46+
]
47+
],
48+
"color": "hsl(0, 0%, 100%)",
49+
"intensity": 0.2
50+
}
51+
}
52+
],
53+
"layers": [
54+
{
55+
"id": "background",
56+
"type": "background",
57+
"paint": {
58+
"background-color": "rgb(234, 243, 240)"
59+
}
60+
},
61+
{
62+
"id": "road-base",
63+
"type": "fill",
64+
"source": "hd-roads",
65+
"source-layer": "hd_road_polygon",
66+
"filter": [
67+
"all",
68+
[
69+
"match",
70+
[
71+
"get",
72+
"class"
73+
],
74+
[
75+
"road"
76+
],
77+
true,
78+
false
79+
]
80+
],
81+
"layout": {
82+
"fill-elevation-reference": "hd-road-base"
83+
},
84+
"paint": {
85+
"fill-color": [
86+
"interpolate",
87+
[
88+
"linear"
89+
],
90+
[
91+
"zoom"
92+
],
93+
16,
94+
"hsl(212, 25%, 80%)",
95+
18,
96+
"hsl(212, 25%, 71%)"
97+
]
98+
}
99+
},
100+
{
101+
"id": "road-base-bridge",
102+
"type": "fill",
103+
"source": "hd-roads",
104+
"source-layer": "hd_road_polygon",
105+
"filter": [
106+
"all",
107+
[
108+
"match",
109+
[
110+
"get",
111+
"class"
112+
],
113+
[
114+
"bridge"
115+
],
116+
true,
117+
false
118+
]
119+
],
120+
"layout": {
121+
"fill-elevation-reference": "hd-road-base"
122+
},
123+
"paint": {
124+
"fill-color": [
125+
"interpolate",
126+
[
127+
"linear"
128+
],
129+
[
130+
"zoom"
131+
],
132+
16,
133+
"hsl(212, 25%, 80%)",
134+
18,
135+
"hsl(212, 25%, 71%)"
136+
]
137+
}
138+
}
139+
]
140+
}
12.8 KB
Binary file not shown.

0 commit comments

Comments
 (0)