-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathmemorial.json
247 lines (247 loc) · 8.56 KB
/
memorial.json
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
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
{
"type": "overpass",
"query": {
"11": [
"(",
"node[historic~\"^(monument)$\"];",
"way[historic~\"^(monument)$\"];",
"relation[historic~\"^(monument)$\"];",
")"
],
"14": [
"(",
"node[historic~\"^(memorial|monument)$\"];",
"way[historic~\"^(memorial|monument)$\"];",
"relation[historic~\"^(memorial|monument)$\"];",
")"
]
},
"feature": {
"pre": [
"{% set memtype = 'yes' %}",
"{% if tags.memorial %}",
" {% set memtype = tags.memorial %}",
"{% elseif attribute(tags, 'memorial:type') %}",
" {% set memtype = attribute(tags, 'memorial:type') %}",
"{% elseif attribute(tags, 'monument') %}",
" {% set memtype = attribute(tags, 'monument') %}",
"{% elseif attribute(tags, 'memorial_type') %}",
" {% set memtype = attribute(tags, 'memorial_type') %}",
"{% endif %}",
"",
"{% set memgroup = memtype %}",
"{% for value, data in const %}",
"{% if memtype in data.alias %}",
"{% set memgroup = value %}",
"{% endif %}",
"{% endfor %}"
],
"description": [
"{{ tagTrans('historic', tags.historic) }}",
"",
"{% if memtype != 'yes' %}",
" ({{ tagTrans('memorial', memtype) }})",
"{% endif %}"
],
"priority": [
"{% if tags.historic == 'monument' %}0[% else %}1{% endif %}"
],
"body": [
"<ul>",
"{% if tags.inscription %}",
" <li class='hasSymbol'>",
" <i class=\"fa fa-pencil-alt\" aria-hidden=\"true\"></i>",
" <span class='key'>{{ keyTrans('inscription') }}:</span>",
" <span class='value'>{{ localizedTag(tags, 'inscription')|nl2br }}</span>",
" </li>",
"{% elseif attribute(tags, 'inscription:url') %}",
" <li class='hasSymbol'>",
" <i class=\"fa fa-pencil-alt\" aria-hidden=\"true\"></i>",
" <span class='key'><a href=\"{{ attribute(tags, 'inscription:url') }}\">{{ keyTrans('inscription') }}</a></span>",
" </li>",
"{% endif %}",
"",
"{% if attribute(tags, 'historic:civilization') %}",
" <li class='hasSymbol'>",
" <i class=\"fa fa-users\" aria-hidden=\"true\"></i>",
" <span class='key'>{{ keyTrans('historic:civilization') }}:</span>",
" <span class='value'>{{ tagTrans('historic:civilization', attribute(tags, 'historic:civilization')) }}</span>",
" </li>",
"{% endif %}",
"",
"{% if attribute(tags, 'memorial:conflict') %}",
" <li class='hasSymbol'>",
" <i class=\"fa fa-bolt\" aria-hidden=\"true\"></i>",
" <span class='key'>{{ keyTrans('memorial:conflict') }}:</span>",
" <span class='value'>{{ tagTransList('memorial:conflict', attribute(tags, 'memorial:conflict')) }}</span>",
" </li>",
"{% endif %}",
"",
"{% if tags.artist_name %}",
" <li class='hasSymbol'>",
" <i class=\"fa fa-palette\" aria-hidden=\"true\"></i>",
" <span class='key'>{{ keyTrans('artist_name') }}:</span>",
" <span class='value'>{{ enumerate(tags.artist_name) }}</span>",
" </li>",
"{% endif %}",
"</ul>"
],
"markerSign": "{{ const[memgroup].sign|raw }}"
},
"info": [
"<table>",
"{% for value, data in const %}",
"{% if data.zoom <= map.zoom %}",
" <tr>",
" <td>{{ markerCircle({})|raw }}<div class='sign'>{{ data.sign|raw }}</div></td>",
" <td>{{ tagTrans('memorial', value) }}</td>",
" </tr>",
"{% endif %}",
"{% endfor %}",
"{% if 14 <= map.zoom %}",
" <tr>",
" <td>{{ markerCircle({})|raw }}<div class='sign'></div></td>",
" <td>{{ trans('other') }}</td>",
" </tr>",
"{% endif %}",
"</table>"
],
"const": {
"plaque": {
"alias": [
"plate"
],
"sign": "<img data-src='img/plaque.svg'>",
"zoom": 14
},
"blue_plaque": {
"sign": "<img data-src='img/blue_plaque.svg'>",
"zoom": 14
},
"statue": {
"sign": "<i class=\"fas fa-female\"></i>",
"zoom": 14
},
"war_memorial": {
"alias": [
"war_monument"
],
"sign": "<img data-src='maki:horse-riding'>",
"zoom": 14
},
"stolperstein": {
"sign": "",
"zoom": 14
},
"stone": {
"sign": "",
"zoom": 14
},
"bust": {
"alias": [
"person",
"public_person"
],
"sign": "<i class=\"fas fa-user-alt\"></i>",
"zoom": 14
},
"stele": {
"sign": "",
"zoom": 14
},
"obelisk": {
"sign": "",
"zoom": 14
},
"sculpture": {
"sign": "",
"zoom": 14
},
"ghost_bike": {
"sign": "<i style=\"color: white;\" class=\"fas fa-bicycle\"></i>",
"zoom": 14
},
"vehicle": {
"alias": [
"tank"
],
"sign": "<i class=\"fas fa-car\"></i>",
"zoom": 14
},
"cross": {
"sign": "<i class=\"fas fa-cross\"></i>",
"zoom": 14
}
},
"filter": {
"type": {
"name": "{{ trans('filter:type') }}",
"show_default": "true",
"type": "select",
"values": "{% for k, v in const %}<option value='{{ k }}' query='nwr[~\"^(memorial|memorial:type|memorial_type|monument)$\"~\"^({{ k }}{% for alias in v.alias %}|{{ alias }}{% endfor %})$\"]'>{{ tagTrans('memorial', k) }}</option>{% endfor %}"
},
"size": {
"name": "{{ keyTrans('memorial') }} | {{ keyTrans('monument') }}",
"type": "radio",
"values": "<option value='*' query=''>{{ trans('any value') }}</option>\n<option value='memorial' query='nwr[historic=memorial]'>{{ keyTrans('memorial') }}</option>\n<option value='monument' query='nwr[historic=monument]'>{{ keyTrans('monument') }}</option>",
"default": "*"
},
"conflict": {
"key": "memorial:conflict",
"op": "has",
"name": "{{ keyTrans('memorial:conflict') }}",
"type": "select",
"values": [
"WW1",
"WW2"
],
"valueName": "{{ tagTrans('memorial:conflict', value) }}"
},
"civilization": {
"key": "historic:civilization",
"op": "has",
"name": "{{ keyTrans('historic:civilization') }}",
"type": "select",
"values": [
"ancient_egyptian",
"ancient_greek",
"ancient_roman",
"byzantine",
"celtic",
"etruscan",
"imperial_chinese",
"korean",
"medieval",
"modern",
"neolithic",
"nuragic",
"ottoman",
"prehistoric",
"roman",
"western_roman"
],
"valueName": "{{ tagTrans('historic:civilization', value) }}"
}
},
"name": {
"ca": "Memorials i Monuments",
"cs": "Památníky a pomníky",
"de": "Denkmäler und Monumente",
"en": "Memorials & Monuments",
"es": "Monumentos y lugares conmemorativos",
"fr": "Mémoriaux et monuments commémoratifs",
"gl": "Memoriais e monumentos",
"hu": "Emlékművek",
"it": "Memoriali e monumenti",
"ja": "記念碑&記念建造物",
"nb": "Minnesmerker og monumenter",
"nl": "Gedenktekens",
"oc": "Monuments e Memoriaus",
"pl": "Miejsca pamięci i pomniki",
"pt": "Memoriais e monumentos",
"pt-br": "Memoriais e monumentos",
"ru": "Памятники и монументы",
"sr": "Споменици",
"tr": "Anıt ve Abideler"
}
}