-
Notifications
You must be signed in to change notification settings - Fork 0
/
gondola.yaml
199 lines (185 loc) · 6.9 KB
/
gondola.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
import:
- https://www.nextzen.org/carto/refill-style/refill-style.zip
# - https://www.nextzen.org/carto/refill-style/11/themes/color-inverted.zip
# - https://www.nextzen.org/carto/refill-style/11/themes/color-gray-gold.zip
- https://gist.githubusercontent.com/burritojustice/12e5f901fd1f48318ad9b1aded1bb2b3/raw/demo.yaml
- https://www.nextzen.org/carto/refill-style/11/themes/label-7.zip
# - https://www.nextzen.org/carto/refill-style/themes/terrain-shading.zip
- https://www.nextzen.org/carto/refill-style/11/themes/terrain-shading-dark.zip
# - https://www.nextzen.org/carto/refill-style/themes/terrain-pattern.zip
# - https://www.nextzen.org/carto/refill-style/11/themes/terrain-pattern-dark.zip
sources:
_elevation:
url: https://gist.githubusercontent.com/burritojustice/a3057ba4bc214c5b5015207a249eccd6/raw/5c946a61e4606a26fde6d83c3f59a94df6ec1709/sf_contours_100.geojson
# url: https://gist.githubusercontent.com/burritojustice/1eac5147a00cb7f2444309a66e034dd5/raw/gondola.geojson
# url: https://gist.githubusercontent.com/burritojustice/1eac5147a00cb7f2444309a66e034dd5/raw/gondola.geojson
# url_params:
# app_id: global.app_id
# app_code: global.app_code
type: GeoJSON
_elevation_10:
url: https://maphub.cit.api.here.com/geospace/x-sf-elevation/tile/web/{z}_{x}_{y}
url_params:
app_id: global.app_id
app_code: global.app_code
type: GeoJSON
_gondola:
# url: https://gist.githubusercontent.com/burritojustice/1eac5147a00cb7f2444309a66e034dd5/raw/map.geojson
url: https://gist.githubusercontent.com/burritojustice/1eac5147a00cb7f2444309a66e034dd5/raw/gondola.geojson
# url_params:
# app_id: global.app_id
# app_code: global.app_code
type: GeoJSON
_sf:
url: https://raw.githubusercontent.com/burritojustice/sf-gondola-map/master/sf_county.geojson
type: GeoJSON
layers:
_sf:
enabled: false
data: {source: _sf}
draw:
lines:
color: blue
width: 2px
order: 100
dash: [1, 1]
outline:
color: aqua
width: 1px
_gondola:
# enabled: false
data: {source: _gondola}
_stations:
filter:
all:
- kind: station
- $zoom: {min: 11}
draw:
mapzen_icon_library:
collide: false
sprite: aerialway
priority: 1
# color: [0,1,0,0.8]
size: 20px
# order: 1002
text:
# collide: false
optional: true
priority: 1
font:
size: 10px
fill: darkgreen
stroke:
color: white
width: 3
_icon_border_color:
filter:
all:
- kind: station
- $zoom: {min: 12}
draw:
points:
size: 30px
collide: false
color: |
function(){
var station = feature.access
var color = [0,1,0,0.5]
if (station == "funicular"){
return [1,0,0,0.5]
}
if (station == "elevator"){
return [0,0,1,0.5]
}
if (station == "ground"){
return [0,1,0,0.5]}
}
outline:
color: [0,0,0,0.5]
width: 1px
_lines:
filter: {kind: line}
# filter: {}
draw:
lines:
# priority: 1
# color: [1,0,0,0.5]
color: function(){return feature.stroke}
width: 2px
order: 10002
outline:
color: [0,0,0,0.3]
width: 1px
text:
priority: 1
font:
size: 12px
fill: yellow
stroke:
color: grey
width: 3px
_borders:
filter: {kind: border}
draw:
lines:
color: blue
width: 2px
order: 100
dash: [1, 1]
outline:
color: aqua
width: 3px
text:
priority: 1
font:
size: 12px
fill: blue
stroke:
color: white
width: 3px
_funicular:
filter: {kind: funicular}
draw:
lines:
# priority: 1
# color: [1,0,0,0.5]
color: white
width: 3px
order: 1002
outline:
color: red
width: 3px
text:
priority: 1
font:
size: 10px
fill: white
stroke:
color: black
width: 3px
_elevation:
enabled: false
data: {source: _elevation}
_lines:
# enabled: false
# filter: {kind: line}
# filter: {}
draw:
lines:
color: [0,0,0,0.2]
width: 0.3px
order: 2000
polygons:
# priority: 1
color: |
function(){
var color = 210 - (feature.elevation + 400)/5
return "hsl(" + color + ",100%,50%)"
}
# color: [1,0,0,0.5]
# color: function(){return feature.stroke}
width: 1px
order: function(){return ((1000 + feature.elevation)/100) + 200}
outline:
color: [0,0,0,0.3]
width: 0.5px