forked from plepe/openstreetbrowser-categories-main
-
Notifications
You must be signed in to change notification settings - Fork 0
/
organisations.json
90 lines (90 loc) · 2.57 KB
/
organisations.json
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
{
"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
}
},
"filter": {
"type": {
"name": "{{ trans('filter:type') }}",
"show_default": "true",
"type": "select",
"values": "{% for k, v in const %}<option value=\"{{ k }}\" query=\"nwr[{{ k }}]\" minzoom=\"{{ v.zoom }}\">{{ tagTrans(k) }}</option>{% endfor %}"
}
}
}