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.

82 lines
2.3 KiB

{
"type": "overpass",
"name": {
"en": "Organisations",
"fr": "Organisations",
"pt-br": "Organizações"
},
"query": {
"13": [
"(",
"nwr[office~\"^(ngo|quango|political_party|association|charity)$\"];",
")"
]
},
"feature": {
"pre": [
"{% set key = 'office' %}",
"{% set value = tags.office %}",
""
],
"description": "{{ tagTrans(key, value) }}",
"body": "{% if tags.operator %}{{ keyTrans('operator') }}: {{ tags.operator }}<br/>{% endif %}",
"markerSign": [
"{% set data = const[key ~ '=' ~ value] %}",
"{% if data %}",
"{{ data.sign|raw }}",
"{% endif %}"
],
"priority": [
"{% set data = const[key ~ '=' ~ value] %}",
"{% if data %}",
"{{ data.priority }}",
"{% endif %}"
]
},
"info": [
"<table>",
"{% for kv, data in const %}",
"{% if data.zoom <= map.zoom %}",
" <tr>",
" <td>{{ markerCircle({})|raw }}<div class='sign'>{{ data.sign|raw }}</div></td>",
" <td>",
" {{ tagTrans(kv|split('=')[0], kv|split('=')[1]) }}",
" </td>",
" </tr>",
"{% endif %}",
"{% endfor %}",
"</table>"
],
"const": {
"office=ngo": {
"priority": 0,
"sign": "<i class='fas fa-users'></i>",
"zoom": 13
},
"office=quango": {
"priority": 0,
"sign": "<i class='fas fa-users'></i>",
"zoom": 13
},
"office=political_party": {
"priority": 0,
"sign": "<i class='fas fa-flag'></i>",
"zoom": 13
},
"office=association": {
"priority": 0,
"sign": "<i class='fas fa-people-carry'></i>",
"zoom": 13
},
"office=foundation": {
"priority": 0,
"sign": "<i class='fas fa-people-carry'></i>",
"zoom": 13
},
"office=charity": {
"priority": 0,
"sign": "<i class='fas fa-hands-helping'></i>",
"zoom": 13
}
}
}