This repository has been archived by the owner on Aug 14, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathland.yaml
182 lines (169 loc) Β· 5.5 KB
/
land.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
layers:
boundaries:
data: { source: jawg, layer: admin }
filter: { admin_level: 2, not: { maritime: [true] }}
draw:
boundary_dashes:
order: 80
color: global.boundary_color
width: 1px
water:
data: { source: jawg, layer: water }
filter: { not: { structure: tunnel }}
draw:
polygons:
order: 4
color: global.water_color
shore_lines:
filter: { $zoom: { min: 16 } }
draw:
lines-coast:
order: 5
width: [[16,20px],[18,10m]] # actually visually 1/3
color: global.water_color
waterways:
data: { source: jawg, layer: waterway }
filter: { not: { structure: tunnel }}
draw:
lines:
order: 5
join: round
cap: square
river_lines:
filter: { class: [river, canal] }
draw:
lines:
color: global.water_color
width: [[10, 1px], [17, 6px], [18, 12m]]
stream_lines:
filter: { class: [stream, ditch, drain], $zoom: { min: 15 }}
draw:
lines:
color: global.water_color
width: [[15, 1px], [17, 2px], [18, 5m]]
buildings:
data: { source: jawg, layer: building }
# jawg: there are no 3d building parts
filter: { $zoom: { min: 16 }, not: { type: no } }
draw:
buildings-style:
order: 100
color: global.building_color
extrude: true
buildings-outline-style:
order: 101
color: global.building_outline_color
width: [[16, 1px], [18,2px], [19,4px]]
extrude: true
landuse:
data: { source: jawg, layer: landuse }
filter: { not: { class: national_park }}
draw:
polygons:
order: 1
color: global.town_color
green:
filter:
class:
- grass
- park
- cemetery
- pitch
draw:
polygons:
order: 2
color: global.green_color
trees:
filter:
class:
- scrub
- wood
draw:
polygons:
order: 3
color: global.forest_color
barriers:
data: { source: jawg, layer: structure }
city_walls:
filter: { type: [city_wall, dam, cliff] }
draw:
buildings-outline-style:
order: 100
color: global.building_outline_color
width: [[12, 4px], [18, 8m]]
walls:
filter: { class: fence, not: { type: city_wall }}
draw:
buildings-outline-style:
order: 100
color: global.building_outline_color
width: [[15, 1px], [18, 2m]]
hedge:
filter: { class: hedge }
draw:
buildings-outline-style:
order: 100
color: global.forest_color
width: [[15, 1px], [18, 2m]]
pedestrian-areas:
data: { source: jawg , layer: road }
squares:
filter: { class: street_limited, type: pedestrian , $zoom: { min: 17 } }
draw:
lines:
color: global.square_outline_color
width: function () { return 1/4 * Math.log($zoom); }
order: 30
polygons:
color: global.square_color
order: 31
hillshade:
data: { source: jawg , layer: hillshade }
highlights:
filter: { highlight: true }
draw:
hillshade-light-style:
order: 100
color: '#040404'
shadows:
filter: { shadow: true }
draw:
hillshade-shadow-style:
order: 100
color: '#f9f9f9'
styles:
hillshade-light-style:
base: polygons
blend: add
hillshade-shadow-style:
base: polygons
blend: multiply
boundary_dashes:
base: lines
dash: [1, 2]
blend: translucent
buildings-style:
base: polygons
blend: opaque
buildings-outline-style:
base: lines
blend: inlay
lines-coast:
base: lines
texcoords: true
blend: inlay
shaders:
uniforms:
u_waves: 1.5
u_speed: 0.08
u_color: [1.,1.,1.0,0.4]
blocks:
color: |
float x = (v_texcoord.x - 0.495) * 2.;
if(x > 0.0) {
float opacity = 1.-x;
float waves = fract(u_waves*(1.-x)-u_time*u_speed);
color = mix(color, u_color, opacity * waves * u_color.a);
} else {
color.a = 0.0;
}