-
Notifications
You must be signed in to change notification settings - Fork 11
/
education.yaml
139 lines (138 loc) · 3.4 KB
/
education.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: Servicios educativos
ca: Serveis Educatius
cs: Vzdělávací služby
de: Bildungseinrichtungen
el: Υπηρεσίες Εκπαίδευσης
en: Educational Services
es: Servicios educativos
et: Haridusteenused
fr: Éducation
gl: Servizos educativos
hu: Oktatás
it: Servizi d'istruzione
ja: 教育サービス
nb: Utdanningstjenester
nl: Onderwijs
oc: Education
pl: Usługi edukacyjne
pt: Educação
pt-br: Educação
ro: Servicii educatie
ru: Образование
sr: Образовне услуге
tr: Eğitim Servisleri
uk: Освіта
query:
11: |-
(
nwr[amenity~'^(.*;|)(college|university|library)(;.*|)$'];
)
14: |-
(
nwr[amenity~'^(.*;|)(college|university|library|school|kindergarten|language_school|childcare)(;.*|)$'];
nwr[office~"^(.*;|)(educational_institution|research)(;.*|)$"];
)
16: |-
(
nwr[amenity~'^(.*;|)(college|university|library|school|kindergarten|language_school|public_bookcase|childcare)(;.*|)$'];
nwr[office~"^(.*;|)(educational_institution|research)(;.*|)$"];
)
feature:
pre: |-
{% set key = null %}
{% set value = null %}
{% if tags.office and 'educational_institution' in tags.office|split(';') %}
{% set key = 'office' %}
{% set value = 'educational_institution' %}
{% elseif tags.office and 'research' in tags.office|split(';') %}
{% set key = 'office' %}
{% set value = 'research' %}
{% else %}
{% for k, d in const %}
{% set kv = k|split('=') %}
{% if kv[0] == 'amenity' and kv[1] in tags.amenity|split(';') %}
{% set key = 'amenity' %}
{% set value = kv[1] %}
{% endif %}
{% endfor %}
{% endif %}
description: '{{ tagTransList(key, attribute(tags, key)) }}'
body: |
{% if tags.operator %}{{ keyTrans("operator") }}: {{ tags.operator }}<br/>{% endif %}
markerSign: |-
{% set data = const[key ~ '=' ~ value] %}
{% if data %}
{{ data.sign|raw }}
{% endif %}
priority: |-
{% set data = const[key ~ '=' ~ value] %}
{% if data %}
{{ data.priority }}
{% endif %}
info: |-
<table>
{% for kv, data in const %}
{% if data.zoom <= map.zoom %}
<tr>
<td>{{ markerCircle({})|raw }}<div class='sign'>{{ data.sign|raw }}</div></td>
<td>
{{ tagTrans(kv|split('=')[0], kv|split('=')[1]) }}
</td>
</tr>
{% endif %}
{% endfor %}
</table>
const:
amenity=university:
priority: 0
sign: 🎓
zoom: 11
amenity=college:
priority: 1
sign: 🎓
zoom: 11
amenity=library:
priority: 2
sign: 🕮
zoom: 11
amenity=school:
priority: 3
sign: 🏫
zoom: 14
amenity=language_school:
priority: 3
sign: 🏫
zoom: 14
amenity=kindergarten:
priority: 4
sign: ⛹
zoom: 14
amenity=childcare:
priority: 4
sign: ⛹
zoom: 14
amenity=public_bookcase:
priority: 5
sign: 📚
zoom: 16
office=educational_institution:
priority: 3
sign: 🏢
zoom: 14
office=research:
priority: 3
sign: <i class='fas fa-vials'></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[{{ k|replace({ '=', '^' }) }}]" minzoom="{{ v.zoom }}">
{{ tagTrans(k) }}
</option>
{% endfor %}