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.
|
|
type: overpass
name:
ast: Divisiones Alministratives
ca: Àrees Administratives
cs: Administrativní oblasti
de: Administrative Gebiete
el: Διοικητικά Όρια
en: Administrative Areas
es: Áreas Administrativas
et: Administratiivalad
fr: Zones administratives
gl: Divisións administrativas
hu: Közigazgatási határok
it: Suddivisioni amministrative
ja: 行政界
nb: Administrative områder
nl: Administratieve gebieden
oc: Divisions administrativas
pl: Obszary administracyjne
pt: Regiões administrativas
pt-br: Divisão político-administrativa
ro: Zona administrativă
ru: Административные границы
sr: Административне зоне
tr: İdari Alanlar
query:
3: |-
(
way[admin_level=2];
relation[admin_level=2];
)
6: |-
(
way[admin_level~"^(2|3)$"];
relation[admin_level~"^(2|3)$"];
)
9: |-
(
way[admin_level~"^(2|3|4|5)$"];
relation[admin_level~"^(2|3|4|5)$"];
)
11: |-
(
way[admin_level~"^(2|3|4|5|6|7)$"];
relation[admin_level~"^(2|3|4|5|6|7)$"];
)
13: |-
(
way[admin_level~"^(2|3|4|5|6|7|8|9)$"];
relation[admin_level~"^(2|3|4|5|6|7|8|9)$"];
)
15: |-
(
way[admin_level~"^(2|3|4|5|6|7|8|9|10|11)$"];
relation[admin_level~"^(2|3|4|5|6|7|8|9|10|11)$"];
)
feature:
pre: |-
{% set width = map.zoom < const[tags.admin_level].minZoom + 1.5 ? 1.5 : 3 %}
{% set color = colorInterpolate(['red', 'blue'], (tags.admin_level - 2) / 10) %}
priority: |-
{{ tags.admin_level }}
styles: |-
{{ type == 'way' ? 'default' : '' }}
style:
fill: true
fillOpacity: 0
width: |-
{{ width }}
color: |-
{{ color }}
markerSymbol: ''
listMarkerSymbol: |
{{ markerLine({ width: width, color: color }) }}
description: |-
{{ tagTrans("admin_level", tags.admin_level) }}
body: |-
{{ keyTrans("admin_level") }}: {{ tags.admin_level }}
listExclude: |-
{{ type == 'way' }}
info: |-
<table>
{% for admin_level, data in const %}
{% if data.minZoom <= map.zoom %}
{% set width = map.zoom < const[admin_level].minZoom + 1.5 ? 1.5 : 3 %}
{% set color = colorInterpolate(['red', 'blue'], (admin_level - 2) / 10) %}
<tr>
<td>{{ markerLine({ 'width': width, color: color })|raw }}</td>
<td>{{ tagTrans('admin_level', admin_level) }} ({{ admin_level }})</td>
</tr>
{% endif %}
{% endfor %}
</table>
const:
2:
minZoom: 3
3:
minZoom: 6
4:
minZoom: 9
5:
minZoom: 9
6:
minZoom: 11
7:
minZoom: 11
8:
minZoom: 13
9:
minZoom: 13
10:
minZoom: 15
11:
minZoom: 15
|