-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscene.yaml
414 lines (376 loc) · 12.6 KB
/
scene.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
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
import:
- https://tangrams.github.io/blocks/functions/aastep.yaml
- https://tangrams.github.io/blocks/functions/pulse.yaml
- https://tangrams.github.io/blocks/patterns/stripes.yaml
- https://tangrams.github.io/blocks/space/screen.yaml
global:
sdk_api_key: DpCrhQqsR2igQPEINRTfcw
api_key: DpCrhQqsR2igQPEINRTfcw
sources:
mapzen:
type: MVT
url: https://tile.nextzen.org/tilezen/vector/v1/512/all/{z}/{x}/{y}.mvt
url_params:
api_key: global.api_key
wof_mask:
type: GeoJSON
url: https://xyz.api.here.com/hub/spaces/LdmvFlzZ/tile/web/{z}_{x}_{y}
url_params:
access_token: AFopW1giI0M4jNmflsU9fn8
clip: true
# tags: oregon
# p.wof:name: Oregon,California,Nevada,'Baja California',Sonora,Sinaloa
p.statoids:hasc: MX.BN,MX.BS,US.CA,US.OR,US.NV,MX.SI,MX.SO,US.AZ
california_wof:
type: GeoJSON
url: https://whosonfirst.mapzen.com/data/856/886/37/85688637.geojson
california_1672:
type: GeoJSON
#url: https://gist.githubusercontent.com/burritojustice/5c031e134424cbdaadfcdeead6d3cb4c/raw/map.geojson
url: https://xyz.api.here.com/hub/spaces/bgR9NZnE/tile/web/{z}_{x}_{y}
url_params:
access_token: AFopW1giI0M4jNmflsU9fn8
clip: true
california_1672_raster:
type: Raster
url: https://mapwarper.net/maps/tile/44894/{z}/{x}/{y}.png
scene:
background:
color: black
cameras:
cam:
type: perspective
# vanishing_point: [0, -500]
lights:
dir:
type: directional
direction: [.1, .5, -1]
diffuse: .7
ambient: .5
layers:
california_island:
# enabled: false
data: {source: california_1672}
island:
# enabled: false
draw:
polygons:
order: 1000
color: white
# text:
# collide: false
# font:
# fill: black
# size: 12px
coasts:
filter:
kind: coast
$zoom: {min: 5}
draw:
text:
# collide: false
font:
style: italic
fill: black
size: 12px
stroke:
color: white
width: 3px
places:
# enabled: false
filter:
$zoom: {min: 6}
kind: place
not:
name: St. Francisco
draw:
points:
color: black
size: 6px
text:
# collide: false
font:
fill: black
size: 11px
stroke:
color: white
width: 3px
weight: bold
country:
filter:
kind: country
$zoom: {min: 2, max: 5}
draw:
text:
# collide: false
font:
# style: italic
fill: black
size: 14px
stroke:
color: white
width: 4px
weight: bold
water_mask:
# enabled: false
# data: {source: linework_times-approximate_admin_1_polygons}
# data: {source: california_1672}
# data: {source: california_wof}
data: {source: wof_mask}
# filter: {name: California}
draw:
lines:
order: 100
color: white
width: 115px
draw:
waves:
order: 202
cap: round
width: 8px
color: [0.47,0.47,0.47,.5]
width: 5px
water:
data: { source: mapzen }
draw:
waves:
order: 101
cap: round
width: 8px
color: [0.47,0.47,0.47,.5]
width: 5px
earth:
data: { source: mapzen }
draw:
polygons:
order: 99
color: white
width: 2px
roads:
filter:
kind_detail: motorway
none:
- id: [54,3777,3771,3779,3780,1230,1232,1234,1235,1244,1241,1359,1271,995,994,964,2236,2237,2748,3745,2140,3884,3883]
- shield_text: [15D,'15','95','40','8']
data: { source: mapzen }
draw:
lines:
color: grey
order: 11000
width: 1.5px
outline:
color: white
width: .5px
boundaries:
# enabled: false
data: { source: mapzen}
filter: { maritime_boundary: false }
draw:
lines:
visible: false
order: 100
width: 1.5px
color: lightgrey
dash: [1, 1, 3, 1]
country:
filter: { kind: country }
draw:
lines:
visible: true
color: grey
region:
enabled: false
filter: { kind: [region, macroregion] }
draw: { lines: { visible: true } }
labels:
enabled: false
filter: { kind: [region, macroregion, country] }
draw:
text:
interactive: true
text_source: global.language_text_source
font:
family: Montserrat
transform: uppercase
fill: black
# dual-sided border labels where available
dual:
enabled: false
filter: { 'name:left': true, 'name:right': true }
draw:
text:
priority: 1
offset: [0, 2px]
text_source:
left: global.language_text_source_left
right: global.language_text_source_right
places:
data: { source: mapzen }
filter:
not:
name: [San Jose,Los Angeles, San Diego, Tijuana]
# city labels with points
city-points:
filter:
kind: locality
kind_detail: city
population: {min: 100000}
$zoom: { max: 11 }
draw:
points:
size: 8px
color: darkred
text:
text_source: global.language_text_source
priority: 1
font:
family: Helvetica
fill: [0, 0, 0, .8]
stroke: { color: white, width: 4 }
# transform: uppercase
weight: bold
size: [[8, 11px], [12, 16px]]
buffer: 2px
# places w/text-only labels (not accompanying point)
text-only:
draw:
text:
visible: false
text_source: global.language_text_source
priority: 1
font:
family: Helvetica
size: 12px
fill: [0, 0, 0, .8]
stroke: { color: white, width: 4 }
# transform: uppercase
countries:
filter:
kind: country
any:
- { population: { min: 100000000 } }
- { $zoom: { min: 5, max: 8 }, population: { min: 1000000 } }
draw:
text:
visible: true
buffer: 2px
font:
weight: bold
size: [[6, 14px], [8, 20px]]
regions:
filter:
kind: region
kind_detail: [state, province]
$zoom: { min: 5, max: 9 }
not:
'name:short': [AZ,NV,OR]
draw:
text:
visible: true
buffer: 2px
font:
size: [[6, 14px], [8, 16px]]
# use short name when available at low-zooms
short:
filter: { $zoom: { max: 7 } }
draw:
text:
text_source: 'name:short'
cities:
filter:
kind: locality
kind_detail: city
$zoom: { min: 11 } # show city point labels below z11
draw:
text:
visible: true
font:
weight: bold
size: [[8, 11px], [12, 16px]]
buffer: 2px
neighborhoods:
filter:
- { kind: [neighbourhood, macrohood], $zoom: { min: 13 } }
- { kind: microhood, $zoom: { min: 15 } }
draw:
text:
visible: true
font:
size: [[13, 11px], [14, 11px], [15, 13px]]
style: italic
fill: rgba(136, 45, 23, 0.9)
ca_island_outline:
enabled: false
data: {source: california_1672}
isla_california:
# filter: {name: Isla California}
draw:
lines:
color: [1,0,0]
order: 1002
width: 2px
california_island_raster:
enabled: false
data: {source: california_1672_raster}
draw:
raster:
order: 1001 # draw on bottom
landuse:
enabled: false
data: { source: mapzen }
draw:
hatch:
order: 2000
color: '#464C40'
styles:
states:
base: polygons
mix: [landuse]
pallete:
shaders:
blocks:
global: |
// Common Values
//================================
float radio = 0.05;
vec2 size = vec2(1.,.6);
vec3 background = vec3(0.5, 0.5, 0.5);
vec3 midle = vec3(0.824, 0.812, 0.804);
vec3 foreground = vec3(0.275,0.298,0.251);
border:
base: lines
mix: [functions-pulse, functions-aastep, pallete]
texcoords: true
shaders:
blocks:
color: |
vec2 st = v_texcoord.xy;
float pattern = aastep(.5,pulse(st.x,.7,.1)+pulse(st.x,.35,.25));
color.rgb = mix(background,color.rgb,pattern);
b_border:
base: lines
mix: [functions-pulse, functions-aastep, pallete]
texcoords: true
shaders:
blocks:
color: |
vec2 st = v_texcoord.xy;
float pattern = aastep(.5,pulse(st.x,.5,.2));
color.rgb = mix(background,color.rgb,pattern);
waves:
base: polygons
mix: [space-screen, pallete, patterns-stripes]
shaders:
blocks:
color: |
vec2 pos = getScreenNonStretchCoords();
pos.y += sin(pos.x*62.)*.009;
color.rgb = mix(color.rgb,background,stripes(pos*40.,.2));
hatch:
base: polygons
mix: [functions-aastep, pallete, patterns-stripes, space-screen]
shaders:
blocks:
color: |
vec2 st = getScreenNonStretchCoords();
color.rgb = mix(color.rgb,background,diagonalStripes(st*300.));