Main categories of OpenStreetBrowser with support for whitewater
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.
 
 

113 lines
3.0 KiB

{
"type": "overpass",
"name": {
"ast": "Divisiones Alministratives",
"cs": "Administrativní oblasti",
"de": "Administrative Gebiete",
"el": "Διοικητικά Όρια",
"en": "Administrative Areas",
"et": "Administratiivalad",
"fr": "Zones administratives",
"hu": "Közigazgatási határok",
"it": "Suddivisioni amministrative",
"nl": "Administratieve gebieden",
"pt": "Regiões administrativas",
"pt-br": "Divisão político-administrativa",
"ro": "Zona administrativa",
"ru": "Административные границы"
},
"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)$\"];",
")"
]
},
"members": true,
"feature": {
"description": "{{ tagTrans('admin_level', tags.admin_level) }}",
"body": "{{ keyTrans('admin_level') }}: {{ tags.admin_level }}",
"styles": "",
"markerSymbol": ""
},
"memberFeature": {
"pre": [
"{% set level = 99 %}",
"{% for master in masters %}",
" {% if master.tags.admin_level < level %}",
" {% set level = master.tags.admin_level %}",
" {% endif %}",
"{% endfor %}",
"{% set style = const[level] %}"
],
"style": {
"width": "{{ style.width }}",
"dashArray": "{{ style.dashArray }}",
"color": "#7f007f"
},
"style:hover": {
"pane": "hover",
"width": "4",
"color": "black"
},
"markerSymbol": "",
"listExclude": "true"
},
"const": {
"2": {
"width": "6",
"dashArray": ""
},
"4": {
"width": "4",
"dashArray": "10,5"
},
"6": {
"width": "3",
"dashArray": "5,5"
},
"8": {
"width": "2",
"dashArray": "5,5"
},
"9": {
"width": "1.5",
"dashArray": "5,5"
},
"10": {
"width": "1.5",
"dashArray": "2,5"
}
}
}