forked from tangrams/tangram-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
scene.yaml
121 lines (114 loc) · 2.82 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
cameras:
camera1:
type: perspective
focal_length: [[16, 2], [20, 6]] # pairs of [zoom, focal len]
vanishing_point: [-250, -250] # relative to center of screen, in pixels
lights:
light1:
type: directional
direction: [0, 1, -.5]
diffuse: .3
ambient: 1
sources:
osm:
type: TopoJSON
url: //vector.mapzen.com/osm/all/{z}/{x}/{y}.topojson?api_key=vector-tiles-HqUVidw
layers:
earth:
data:
source: osm
layer: earth
draw:
polygons:
order: 0
color: '#ddeeee'
landuse:
data:
source: osm
layer: landuse
draw:
polygons:
order: 1
color: '#aaffaa'
interactive: true
water:
data:
source: osm
layer: water
draw:
polygons:
order: 2
color: '#88bbee'
roads:
data:
source: osm
layer: roads
filter:
not: {kind: [ferry]}
draw:
lines:
order: 3
color: gray
width: 8
highway:
filter:
kind: highway
draw:
lines:
order: 2
color: '#cc6666'
width: 12
outline:
order: 4
style: lines
color: grey
width: 18
tunnel:
filter:
is_tunnel: yes
draw:
lines:
color: tan
rail:
filter:
kind: rail
draw:
lines:
width: 0
minor_road:
filter:
kind: minor_road
draw:
lines:
color: lightgrey
width: 5
path:
filter:
kind: path
draw:
lines:
color: [0.8, 0.8, 0.8]
width: 3
rail:
filter:
kind: rail
is_tunnel: no
draw:
lines:
color: pink
width: 3
buildings:
data:
source: osm
layer: buildings
draw:
polygons:
order: 5
color: |
function () {
var h = feature.height || 20;
h = Math.min((h + 50)/ 250, .8);
h = Math.max(h, .4);
return [h, h, h];
}
extrude: true