-
Notifications
You must be signed in to change notification settings - Fork 4
/
scene.yaml
86 lines (84 loc) · 2.48 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
cameras:
perspective:
type: perspective
vanishing_point: [0, -500]
lights:
directional1:
type: directional
direction: [.1, .5, -1]
diffuse: .7
ambient: .5
styles:
buildings:
base: polygons
shaders:
blocks:
color: |
color.rgb *= vec3(min((v_world_position.z*.001 + .5),1.));
sources:
nextzen:
type: TopoJSON
url: https://tile.nextzen.org/tilezen/vector/v1/256/all/{z}/{x}/{y}.topojson
url_params:
api_key: d161Q8KATMOhSOcVGNyQ8g
max_zoom: 16
layers:
water:
data: { source: nextzen }
draw:
polygons:
order: function() { return feature.sort_rank; }
color: '#353535'
earth:
data: { source: nextzen }
draw:
polygons:
order: function() { return feature.sort_rank; }
color: '#555'
landuse:
data: { source: nextzen }
draw:
polygons:
order: function() { return feature.sort_rank; }
color: '#666'
roads:
data: { source: nextzen }
filter:
not: { kind: [rail, ferry] }
draw:
lines:
order: function() { return feature.sort_rank; }
color: '#777'
width: 5
buildings:
data: { source: nextzen }
draw:
polygons:
order: function() { return feature.sort_rank; }
color: '#999'
extruded:
draw:
polygons:
style: buildings
extrude: function () { return feature.height > 0 || $zoom >= 16; }
road_labels:
data: { source: nextzen, layer: roads }
filter: { name: true, aeroway: false, tunnel: false, railway: false, not: { kind: [rail, ferry] } }
highway:
filter: { kind: highway, $zoom: { min: 7 } }
draw:
text:
font:
fill: white
weight: 500
size: 12px
family: Helvetica
not_highway:
filter: { not: { kind: highway }, $zoom: { min: 13 } }
draw:
text:
font:
fill: white
weight: 100
size: 11px
family: Helvetica