forked from plepe/openstreetbrowser-categories-main
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwaste.json
138 lines (138 loc) · 5.35 KB
/
waste.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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
{
"type": "overpass",
"name": {
"ast": "Basures",
"cs": "Nakládání s odpady",
"de": "Entsorgung",
"en": "Disposal",
"fr": "Déchets/Recyclage",
"hu": "Hulladék",
"it": "Smaltimento",
"ja": "処理場",
"nl": "Afvalverwijdering",
"pt": "Lixo",
"pt-br": "Lixo",
"ru": "Переработка отходов"
},
"query": {
"13": [
"(",
"node[landuse=landfill];",
"node[man_made~\"^(wastewater_plant|incinerator)$\"];",
"node[amenity=recycling][recycling_type=centre];",
"way[landuse=landfill];",
"way[man_made~\"^(wastewater_plant|incinerator)$\"];",
"way[amenity=recycling][recycling_type=centre];",
"relation[landuse=landfill];",
"relation[man_made~\"^(wastewater_plant|incinerator)$\"];",
"relation[amenity=recycling][recycling_type=centre];",
"nwr[amenity=waste_transfer_station];",
"nwr[power=generator][\"generator:source\"~\"^(.*;|)waste(;.*|)$\"];",
")"
],
"15": [
"(",
"node[landuse=landfill];",
"node[man_made~\"^(wastewater_plant|incinerator)$\"];",
"node[amenity~\"^(recycling|waste_disposal|waste_transfer_station)$\"];",
"way[landuse=landfill];",
"way[man_made~\"^(wastewater_plant|incinerator)$\"];",
"way[amenity~\"^(recycling|waste_disposal|waste_transfer_station)$\"];",
"relation[landuse=landfill];",
"relation[man_made~\"^(wastewater_plant|incinerator)$\"];",
"relation[amenity~\"^(recycling|waste_disposal|waste_transfer_station)$\"];",
"nwr[power=generator][\"generator:source\"~\"^(.*;|)waste(;.*|)$\"];",
")"
],
"18": [
"(",
"node[landuse=landfill];",
"node[man_made~\"^(wastewater_plant|incinerator)$\"];",
"node[amenity~\"^(recycling|waste_basket|waste_disposal|waste_transfer_station)$\"];",
"way[landuse=landfill];",
"way[man_made~\"^(wastewater_plant|incinerator)$\"];",
"way[amenity~\"^(recycling|waste_basket|waste_disposal|waste_transfer_station)$\"];",
"relation[landuse=landfill];",
"relation[man_made~\"^(wastewater_plant|incinerator)$\"];",
"relation[amenity~\"^(recycling|waste_basket|waste_disposal|waste_transfer_station)$\"];",
"nwr[power=generator][\"generator:source\"~\"^(.*;|)waste(;.*|)$\"];",
")"
]
},
"feature": {
"pre": [
"{% set add = '' %}",
"{% if tags.landuse == 'landfill' %}",
" {% set key = 'landuse' %}",
" {% set value = tags.landuse %}",
"{% elseif tags.man_made in [ 'incinerator', 'wastewater_plant' ] %}",
" {% set key = 'man_made' %}",
" {% set value = tags.man_made %}",
"{% elseif tags.amenity in [ 'recycling', 'waste_basket', 'waste_disposal', 'waste_transfer_station' ] %}",
" {% set key = 'amenity' %}",
" {% set value = tags.amenity %}",
"{% elseif tags.power == 'generator' %}",
" {% set key = 'power' %}",
" {% set value = tags.power %}",
" {% set add = '(' ~ tagTransList('generator:source', attribute(tags, 'generator:source')) ~ ')' %}",
"{% endif %}",
"{% set kv = key ~ '=' ~ value %}"
],
"description": "{{ tagTrans(key, value) }} {{ add }}",
"body": [
"{% if tags.recycling_type %}",
"{{ keyTrans('recycling_type') }}: {{ tagTrans('recycling_type', tags.recycling_type) }}",
"{% endif %}"
],
"markerSign": [
"{% if const[kv] %}",
"{{ const[kv].sign|raw }}",
"{% endif %}"
]
},
"info": [
"<table>",
"{% for kv, data in const %}",
" {% if map.zoom >= data.minZoom %}",
" {% set key = kv|split('=')[0] %}",
" {% set value = kv|split('=')[1] %}",
" <tr>",
" <td>{{ markerCircle({})|raw }}<div class='sign'>{{ data.sign|raw }}</div></td>",
" <td>{{ tagTrans(key, value) }}{% if data.add %} ({{ trans(data.add) }}){% endif %}</td>",
" </tr>",
" {% endif %}",
"{% endfor %}",
" <tr>",
" <td>{{ markerCircle({})|raw }}</td>",
" <td>{{ trans('other') }}</td>",
" </tr>",
"</table>"
],
"const": {
"amenity=recycling": {
"minZoom": 13,
"sign": "<img data-src='maki:recycling'>"
},
"man_made=wastewater_plant": {
"minZoom": 13,
"sign": "<i class='fas fa-water'></i>"
},
"man_made=incinerator": {
"minZoom": 13,
"sign": "<i class='fas fa-burn'></i>"
},
"power=generator": {
"minZoom": 13,
"sign": "<i class='fas fa-bolt'></i>",
"add": "tag:generator:source=waste"
},
"amenity=waste_disposal": {
"minZoom": 15,
"sign": "<img data-src='maki:waste-basket'>"
},
"amenity=waste_basket": {
"minZoom": 18,
"sign": "<img data-src='maki:waste-basket'>"
}
}
}