Main categories of OpenStreetBrowser
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

105 lines
3.2 KiB

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 %}