-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathcommunication.yaml
133 lines (133 loc) · 4.08 KB
/
communication.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
type: overpass
name:
ast: Comunicaciones
ca: Comunicacions
cs: Komunikace
de: Kommunikation
el: Επικοινωνίες
en: Communication
es: Comunicación
et: Kommunikatsioon
fr: Communication
gl: Comunicacións
hu: Kommunikácó
it: Comunicazione
ja: 情報通信
nb: Kommunikasjon
nl: Communicatie
oc: Communicacion
pl: Komunikacja
pt: Comunicação
pt-br: Comunicação
ro: Comunicatii
ru: Услуги связи
sr: Комуникација
tr: İletişim
uk: Телекомунікації
query:
13: |-
(
nwr[amenity~'^(.*;|)(post_office|internet_cafe)(;.*|)$'];
nwr[office~"^(.*;|)(telecommunication|it|newspaper|publisher|advertising_agency)(;.*|)$"];
);
15: |-
(
nwr[amenity~'^(.*;|)(post_office|internet_cafe|post_box|parcel_locker|telephone)(;.*|)$'];
nwr[office~"^(.*;|)(telecommunication|it|newspaper|publisher|advertising_agency)(;.*|)$"];
nwr[vending~"^(|.*;)parcel_pickup(;.*|)$"];
nwr[vending~"^(|.*;)parcel_mail_in(;.*|)$"];
);
feature:
pre: |-
{% if tags.vending %}
{% set key = 'amenity' %}
{% set value = 'parcel_locker' %}
{% set deprecated = ['vending=' ~ tags.vending, 'https://wiki.openstreetmap.org/wiki/Proposed_features/amenity%3Dparcel_locker'] %}
{% elseif tags.amenity %}
{% set key = 'amenity' %}
{% set value = tags.amenity %}
{% else %}
{% set key = 'office' %}
{% set value = tags.office %}
{% endif %}
description: |-
{% if key == 'office' %}
{{ keyTrans('office') }} ({{ tagTransList('office', tags.office) }})
{% else %}
{{ tagTransList(key, value) }}
{% endif %}
body: |-
{% if deprecated %}<div class='warning'>{{ repoTrans('deprecated', deprecated[0], deprecated[1])|raw }}</div>{% endif %}
{% if tags.operator %}{{ keyTrans('operator') }}: {{ localizedTag(tags, 'operator') }}<br/>{% endif %}
markerSign: |-
{% set data = const[key ~ '=' ~ value] %}
{% if data %}
{{ data.sign|raw }}
{% endif %}
markerSymbol: '{{ markerPointer({"fillColor": (deprecated ? "red" : "#f2756a") })|raw }}'
listMarkerSymbol: '{{ markerCircle({"fillColor": (deprecated ? "red" : "#f2756a")})|raw }}'
info: |-
<table>
{% for kv, data in const %}
{% if data.zoom <= map.zoom and not data.info_hide %}
<tr>
<td>{{ markerCircle({})|raw }}<div class='sign'>{{ data.sign|raw }}</div></td>
<td>
{% if kv|split('=')[0] == 'office' %}
{{ keyTrans('office') }}
({{ tagTrans('office', kv|split('=')[1]) }})
{% else %}
{{ tagTrans(kv|split('=')[0], kv|split('=')[1]) }}
{% endif %}
</td>
</tr>
{% endif %}
{% endfor %}
</table>
const:
amenity=post_office:
sign: <img src='maki:post?size=15'>
zoom: 13
amenity=post_box:
sign: <img src='maki:post?size=11'>
zoom: 16
amenity=internet_cafe:
sign: <i class='fa fa-laptop' aria-hidden='true'></i>
zoom: 13
amenity=parcel_locker:
sign: <i class='fas fa-box'></i>
query: (nwr[vending~"^(|.*;)parcel_pickup(;.*|)$"];nwr[vending~"^(|.*;)parcel_mail_in(;.*|)$"];nwr[amenity=parcel_locker];)
zoom: 16
office=telecommunication:
sign: <i class='fas fa-mobile-alt'></i>
zoom: 13
office=it:
sign: <i class='fas fa-desktop'></i>
zoom: 13
office=newspaper:
sign: <i class='fas fa-newspaper'></i>
zoom: 13
office=publisher:
sign: <i class='fas fa-book'></i>
zoom: 13
office=advertising_agency:
sign: <i class='fas fa-sign'></i>
zoom: 13
office=public_relations:
sign: <i class='fas fa-sign'></i>
zoom: 13
office=audiovisual_production:
sign: <i class='fas fa-film'></i>
zoom: 13
office=film_production:
sign: <i class='fas fa-film'></i>
zoom: 13
amenity=telephone:
sign: <img src='maki:telephone'>
zoom: 16
filter:
type:
name: '{{ trans("filter:type") }}'
show_default: 'true'
type: select
values: '{% for k, v in const %}<option value="{{ k }}" query="{% if v.query %}{{ v.query }}{% else %}nwr[{{ k }}]{% endif %}" minzoom="{{ v.zoom }}">{{ tagTrans(k) }}</option>{% endfor %}'