-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscene.yaml
executable file
·98 lines (90 loc) · 2.4 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
# to do
# colours
# check the osm layers that are available
# topo, contours?
cameras:
camera1:
type: perspective
lights:
#light1:
# type: point
# origin: ground
# position: [0, 0, 800px]
# diffuse: .4
#specular: .3
light2:
visible: true
type: directional
#position: [-74.0170, 40.7031, 100]
#origin: world
ambient: .4
diffuse: .6
specular: .9
sources:
osm:
type: TopoJSON
url: //vector.mapzen.com/osm/all/{z}/{x}/{y}.topojson?api_key=vector-tiles-E7BgIC4
layers:
# earth:
# data: { source: osm }
# draw:
# polygons:
# order: 0
# color: [0,0,0,1]
# landuse:
# data: { source: osm }
# draw:
# polygons:
# order: 1
# #color: [0, 62, 128] ?
# color: '#556483'
# water:
# data: { source: osm }
# draw:
# polygons:
# order: 2
# color: [255,255,255,1]
# roads:
# data: { source: osm }
# filter:
# # not: { kind: ["path", "rail"] }
# draw:
# lines:
# order: 4
# color: '#000000'
# width: 6
# cap: butt
# highway:
# filter:
# kind: highway
# draw:
# lines:
# order: 5
# color: '#000000'
# width: 4
#
# minor_road:
# filter:
# kind: minor_road
# draw:
# lines:
# order: 3
# color: '#000000'
# width: 3
buildings:
data: { source: osm }
draw:
polygons:
order: 9
color: '#000000' #|
# function () {
# var h = feature.height || 20;
# h = Math.min((h + 50)/ 255, .3); // max brightness: .5
# h = Math.max(h, .1); // min brightness: .4
# return [h, h, h];
# }
3d-buildings:
#filter: { $zoom: { min: 13 } }
draw:
polygons:
extrude: function () { return feature.height > 2 || $zoom >= 10; }