-
Notifications
You must be signed in to change notification settings - Fork 11
/
public.yaml
105 lines (102 loc) · 3.21 KB
/
public.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
type: overpass
name:
ast: Serviciu Públicu
ca: Serveis Públics
cs: Veřejné služby
de: Öffentliche Dienste
el: Δημόσιες Υπηρεσίες
en: Public Services
es: Servicios públicos
et: Kommunaalteenused
fr: Services et équipements publics
gl: Servizos públicos
hu: Közszolgáltatások
it: Servizi pubblici
ja: 公共サービス
nb: Offentlige tjenester
nl: Openbare diensten
oc: Servicis e equimaments publics
pl: Usługi publiczne
pt: Serviços públicos
pt-br: Utilidade pública
ro: Servicii publice
ru: Общественные места
sr: Јавне службе
tr: Kamu Hizmetleri
uk: Громадські місця
query:
12: |-
(
nwr[amenity~'^(.*;|)(embassy|public_building|townhall)(;.*|)$'];
nwr[amenity=recycling][recyling_type=centre];
nwr[office~"^(.*;|)(government|administration)(;.*|)$"];
);
16: |-
(
nwr[amenity~'^(.*;|)(embassy|public_building|townhall|clock|drinking_water|recycling|toilets)(;.*|)$'];
node[drinking_water][drinking_water!=no];
nwr[office~"^(.*;|)(government|administration)(;.*|)$"];
);
feature:
pre: |-
{% set key = null %}
{% set value = null %}
{% if tags.drinking_water and tags.drinking_water != 'no' %}
{% set key = 'amenity' %}
{% set value = 'drinking_water' %}
{% endif %}
{% for k, d in const %}
{% 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 key == 'office' %}
{{ keyTrans('office') }} ({{ tagTransList('office', tags.office) }})
{% elseif value == 'drinking_water' %}
{{ tagTrans(key, value) }}
{% else %}
{{ tagTransList(key, attribute(tags, key)) }}
{% endif %}
body: '{% if tags.operator %}{{ keyTrans("operator") }}: {{ tags.operator }}<br/>{% endif %}'
markerSign: |-
{% set kv = key ~ '=' ~ value %}
{% if const[kv] %}
{{ const[kv]|raw }}
{% endif %}
info: |-
<table>
{% for value, sign in const %}
<tr>
<td>{{ markerCircle({})|raw }}<div class='sign'>{{ sign|raw }}</div></td>
<td>{{ tagTrans('amenity', value) }}</td>
</tr>
{% endfor %}
</table>
const:
amenity=clock: <i class='fa fa-clock-o' aria-hidden='true'></i>
amenity=drinking_water: <img data-src='maki:drinking-water'>
amenity=embassy: <img data-src='maki:embassy'>
amenity=public_building: <img data-src='maki:building'>
amenity=recycling: <img data-src='maki:recycling'>
amenity=toilets: <img data-src='maki:toilet'>
amenity=townhall: <img data-src='maki:town-hall'>
office=administration: <img data-src='maki:town-hall'>
office=government: <img data-src='maki:town-hall'>
filter:
type:
name: '{{ trans("filter:type") }}'
show_default: 'true'
type: select
values: |-
{% for k, v in const %}
{% if k == 'amenity=drinking_water' %}
<option value="{{ k }}" query="(nwr[dringing_water];nwr[amenity^drinking_water];)">
{% else %}
<option value="{{ k }}" query="nwr[{{ k|replace({ '=': '^' }) }}]">
{% endif %}
{{ tagTrans(k) }}
</option>
{% endfor %}