This repository was archived by the owner on Aug 11, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathscene.yaml
More file actions
185 lines (183 loc) · 6.31 KB
/
scene.yaml
File metadata and controls
185 lines (183 loc) · 6.31 KB
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
import:
- https://www.nextzen.org/carto/refill-style/refill-style.zip
- https://s3.amazonaws.com/xyz-demo/data/demo.yaml
- https://www.nextzen.org/carto/refill-style/themes/label-5.zip
sources:
_test_xyz:
url: https://xyz.api.here.com/hub/spaces/g7ha5XFW/tile/web/{z}_{x}_{y}
url_params:
access_token: AB4xTPyUTJaO-CHpPjOoMAA
clip: true
type: GeoJSON
styles:
_polygons_inlay:
base: polygons
blend: overlay
# blend_order: 1
layers:
_test_xyz:
enabled: true
data:
source: _test_xyz
draw:
_polygons_inlay:
interactive: true
color:
grey
noise:
filter:
function(){return feature.noise_db >= 50;}
draw:
_polygons_inlay:
interactive: true
color:
function(){
h=feature.noise_norm;
return [1,0,0, -h];}
visible:
false
nature:
filter:
function(){return feature.nature_dis < 1500;}
draw:
_polygons_inlay:
interactive: true
color:
function(){
h=feature.nature_norm;
return [.13,.53,.13,-h];}
visible:
false
eating:
filter:
function(){return feature.eating_dis > 3;}
draw:
_polygons_inlay:
interactive: true
color:
function(){
h=feature.eating_norm;
return [.4,.4,1,h];}
visible:
false
nightlife:
filter:
function(){return feature.nightl_dis > 0;}
draw:
_polygons_inlay:
interactive: true
color:
function(){
h=feature.nightl_norm;
return [0,.75,1,h];}
visible:
false
culture:
filter:
function(){return feature.cultur_dis > 0;}
draw:
_polygons_inlay:
interactive: true
color:
function(){
h=feature.cultur_norm;
return [1,.55,0, h];}
visible:
false
shopping:
filter:
function(){return feature.shoppi_dis > 0;}
draw:
_polygons_inlay:
interactive: true
color:
function(){
h = feature.shoppi_norm;
return [.7,.13,.13,h];
}
visible:
false
university:
filter:
function(){return feature.univer_dis < 3000;}
draw:
_polygons_inlay:
interactive: true
color:
function(){
h = 2 * feature.univer_norm;
return [.5, 1, 0, -h];
}
visible:
false
transport:
filter:
function(){return feature.onpv_dis < 200}
draw:
_polygons_inlay:
interactive: true
color:
function(){
h=feature.onpv_norm;
return [.55,.04,.32,-h];
}
visible:
false
julia:
filter:
function(){return feature.noise_db == null && feature.nature_dis < 1500 && feature.onpv_dis < 200;}
draw:
_polygons_inlay:
interactive: true
color:
function(){
a=feature.nature_norm;
b=-feature.onpv_norm;
c=((a+b)/2);
return [.04,.35,.04,c];}
visible:
false
peter:
filter:
function(){return feature.eating_dis > 0 && feature.nightl_dis > 0 && feature.univer_dis > 0;}
draw:
_polygons_inlay:
interactive: true
color:
function(){
a=feature.eating_norm;
b=feature.nightl_norm;
c=feature.univer_norm;
d=((a+b+c)/3);
return [.04,.35,.04,d];}
visible:
false
anna:
filter:
function(){return feature.eating_dis > 0 && feature.cultur_dis > 0 && feature.onpv_dis < 200;}
draw:
_polygons_inlay:
interactive: true
color:
function(){
a=feature.eating_norm;
b=feature.cultur_norm;
c=feature.onpv_norm;
d=((a+b+c)/3);
return [.04,.35,.04,d];}
visible:
false
schillers:
filter:
function(){return feature.nature_dis > 50 && feature.shoppi_dis > 0 && feature.noise_db == null;}
draw:
_polygons_inlay:
interactive: true
color:
function(){
a=feature.nature_norm;
b=feature.shoppi_norm;
d=((a+b)/2);
return [.04,.35,.04,d];}
visible:
false