-
Notifications
You must be signed in to change notification settings - Fork 11
/
culture.yaml
131 lines (127 loc) · 4.43 KB
/
culture.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
type: overpass
name:
ast: Cultura
ca: Cultura
cs: Kultura
de: Kultur
el: Πολιτισμός
en: Culture
es: Cultura
et: Kultuur
fr: Culture
gl: Cultura
hu: Kultúra
it: Cultura
ja: 文化
nb: Kultur
nl: Cultuur
oc: Cultura
pl: Kultura
pt: Cultura
pt-br: Cultura
ro: Cultura
ru: Культура
sr: Култура
tr: Kültür
uk: 'Культура '
query:
13: |-
(
nwr[amenity~"^(.*;|)(arts_centre|cinema|community_centre|fountain|studio|theatre)(;.*|)$"];
nwr[tourism~"^(.*;|)(artwork|gallery|museum|theme_park)(;.*|)$"];
nwr[amenity~"^(.*;|)clock(;.*|)$"][display~"^(sundial|unorthodox)$"];
nwr[amenity~"^(.*;|)clock(;.*|)$"]["display:sundial"];
nwr[amenity~"^(.*;|)clock(;.*|)$"]["display:unorthodox"];
nwr[shop~"^(.*;|)(art)$"];
)
feature:
pre: |-
{% if tags.amenity in [ 'arts_centre', 'cinema', 'community_centre', 'fountain', 'studio', 'theatre', 'clock' ] %}
{% set key = 'amenity' %}
{% set value = tags.amenity %}
{% elseif tags.tourism %}
{% set key = 'tourism' %}
{% set value = tags.tourism %}
{% elseif tags.shop %}
{% set key = 'shop' %}
{% set value = tags.shop %}
{% endif %}
description: |-
{% if key == 'shop' %}
{{ keyTrans(key) }} ({{ tagTrans(key, value) }})
{% elseif tags.amenity matches "/^(.*;|)clock(;.*|)$/" %}
{% if tags.display == 'sundial' or attribute(tags, 'display:sundial') %}{{ tagTrans('amenity', 'clock display=sundial') }}{% endif %}
{% if tags.display == 'unorthodox' or attribute(tags, 'display:unorthodox') %}{{ tagTrans('amenity', 'clock display=unorthodox') }}{% endif %}
{% else %}
{{ tagTransList(key, value) }}
{% endif %}
{% if tags.tourism matches "/^(.*;|)museum(;.*|)$/" and tags.museum %}
({{ tagTransList('museum', tags.museum) }})
{% endif %}
{% if tags.amenity matches "/^(.*;|)theatre(;.*|)$/" and attribute(tags, 'theatre:genre') %}
({{ tagTransList('theatre:genre', attribute(tags, 'theatre:genre')) }})
{% endif %}
{% if tags.amenity matches "/^(.*;|)community_centre(;.*|)$/" and tags.community_centre %}
({{ tagTransList('community_centre', tags.community_centre) }})
{% 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 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 %}
{% if tags.material %}
<li class='hasSymbol'>
<img data-src="maki:warehouse">
<span class='key'>{{ keyTrans('material') }}:</span>
<span class='value'>{{ tagTransList('material', tags.material) }}</span>
</li>
{% endif %}
</ul>
markerSign: '{{ attribute(const, key ~ "=" ~ value)|raw }}'
const:
amenity=arts_centre: 🎨
amenity=cinema: 🎦
amenity=clock: <i class="fas fa-clock"></i>
amenity=community_centre: <i class="fas fa-users" aria-hidden="true"></i>
amenity=fountain: ⛲
amenity=studio: <i class="fas fa-microphone"></i>
amenity=theatre: 🎭
tourism=artwork: '🎨 '
tourism=gallery: 🖼
tourism=museum: '🏛 '
tourism=theme_park: <img data-src='maki:amusement-park'>
shop=art: <i class="fa fa-shopping-cart"></i>
info: |-
<table>
{% for value, sign in const %}
<tr>
<td>{{ markerCircle({})|raw }}<div class='sign'>{{ sign|raw }}</div></td>
<td>{{ tagTrans(value|split('=')[0], value|split('=')[1]) }}</td>
</tr>
{% endfor %}
</table>
filter:
type:
name: '{{ trans("filter:type") }}'
show_default: 'true'
query: |-
nwr[{{ value|replace({ '=': '^' }) }}]
type: select
values: '{% for k, v in const %}<option value="{{ k }}">{{ trans("tag:" ~ k) }}</option>{% endfor %}<option value="other" query="nwr[amenity=fountain]">{{ trans("other") }}</option>'
valueName: '{{ trans("tag:" ~ value) }}'