-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathreligion.yaml
139 lines (138 loc) · 3.76 KB
/
religion.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
type: overpass
name:
ast: Relixón
ca: Religió
cs: Náboženství
de: Religion
el: Θρησκεία
en: Religion
es: Religión
et: Religioon
fr: Religion
gl: Relixión
hu: Vallás
it: Religione
ja: 宗教
nb: Religion
nl: Religie
oc: Religion
pl: Religia
pt: Religião
pt-br: Religião
ro: Religie
ru: Религия
sr: Религија
tr: Din
uk: Релігія
query:
13: |-
(
nwr[amenity~"^(.*;|)(place_of_worship|grave_yard|crematorium)(;.*|)$"];
nwr[landuse~"^(.*;|)(cemetery)(;.*|)$"];
)
14: |-
(
nwr[amenity~"^(.*;|)(place_of_worship|grave_yard|crematorium)(;.*|)$"];
nwr[landuse~"^(.*;|)(cemetery)(;.*|)$"];
nwr[historic~"^(.*;|)wayside_(cross|shrine|chapel)(;.*|)$"];
nwr[office~"^(.*;|)(parish|religion)(;.*|)$"];
)
feature:
pre: |-
{% set key = null %}
{% set value = null %}
{% for k, d in const.types %}
{% set kv = k|split('=') %}
{% if attribute(tags, kv[0]) and kv[1] in attribute(tags, kv[0])|split(';') %}
{% set key = kv[0] %}
{% set value = kv[1] %}
{% endif %}
{% endfor %}
description: |-
{% if tags.building and tags.religion %}
{% if isTranslated('tag:building=' ~ tags.building ~ ' religion=' ~ tags.religion) %}
{{ trans('tag:building=' ~ tags.building ~ ' religion=' ~ tags.religion) }}
{% elseif tags.building != 'yes' %}
{{ trans('tag:building=' ~ tags.building) }}
{% else %}
{{ tagTransList(key, attribute(tags, key)) }}
{% endif %}
{% else %}
{{ tagTransList(key, attribute(tags, key)) }}
{% endif %}
listDetails: '{{ tagTransList("religion", tags.religion) }}{% if tags.denomination %} - {{ tagTransList("denomination", tags.denomination) }}{% endif %}'
body: |-
{% if tags.building %}
{{ keyTrans('building') }}: {{ tagTrans('building', tags.building) }}<br/>
{% endif %}
{% if tags.religion %}
{{ keyTrans('religion') }}: {{ tagTransList('religion', tags.religion) }}<br/>
{% endif %}
{% if tags.denomination %}
{{ keyTrans('denomination') }}: {{ tagTransList('denomination', tags.denomination) }}<br/>
{% endif %}
markerSign: '{{ const.religion[tags.religion] }}'
const:
types:
landuse=cemetery:
zoom: 13
historic=wayside_cross:
zoom: 14
historic=wayside_shrine:
zoom: 14
historic=wayside_chapel:
zoom: 14
amenity=place_of_worship:
zoom: 13
amenity=grave_yard:
zoom: 13
amenity=crematorium:
zoom: 13
office=parish:
zoom: 14
office=religion:
zoom: 14
religion:
christian: ✝
muslim: ☪
buddhist: ☸
shinto: ''
hindu: ॐ
jewish: ✡
taoist: ''
sikh: ''
none: ''
multifaith: ''
unitarian_universialist: ''
spiritualist: ''
jain: ''
voodoo: ''
confucian: ''
bahai: ''
caodaism: ''
tenrikyo: ''
vietnamese_folk: ''
pagan: ☆
scientologist: ''
zoroastrian: ''
pentecostal: ''
shamanic: ''
filter:
type:
name: '{{ trans("filter:type") }}'
show_default: 'true'
query: nwr[{{ value }}]
type: select
values: |-
{% for k, v in const.types %}
<option value="{{ k }}" query="nwr[{{ k|replace({ '=': '^' }) }}]" minzoom="{{ v.zoom }}">
{{ tagTrans(k) }}
</option>
{% endfor %}
religion:
name: '{{ keyTrans("religion") }}'
show_default: 'true'
type: select
valueName: '{{ tagTrans("religion", value) }}'
values: '{% set list = [] %}{% for t, v in const.religion %}<option value="{{ t }}">{% set list = list|merge([ t ]) %}{{ tagTrans("religion", t) }}</option>{% endfor %}<option value="other" query="nwr[religion][religion!~"^({{ list|join("|") }})$"]">{{ trans("other") }}</option>'
op: has