Main categories of OpenStreetBrowser with public transport zoom level
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.
 
 

110 lines
3.6 KiB

{
"type": "overpass",
"name": {
"ast": "Basures",
"cs": "Nakládání s odpady",
"de": "Entsorgung",
"en": "Disposal",
"fr": "Déchets/Recyclage",
"it": "Smaltimento",
"ja": "処理場",
"nl": "Afvalverwijdering",
"pt-br": "Lixo",
"ru": "Переработка отходов"
},
"query": {
"13": [
"(",
"node[landuse=landfill];",
"node[man_made=wastewater_plant];",
"node[amenity=recycling][recycling_type=centre];",
"way[landuse=landfill];",
"way[man_made=wastewater_plant];",
"way[amenity=recycling][recycling_type=centre];",
"relation[landuse=landfill];",
"relation[man_made=wastewater_plant];",
"relation[amenity=recycling][recycling_type=centre];",
")"
],
"15": [
"(",
"node[landuse=landfill];",
"node[man_made=wastewater_plant];",
"node[amenity=recycling];",
"way[landuse=landfill];",
"way[man_made=wastewater_plant];",
"way[amenity=recycling];",
"relation[landuse=landfill];",
"relation[man_made=wastewater_plant];",
"relation[amenity=recycling];",
")"
],
"18": [
"(",
"node[landuse=landfill];",
"node[man_made=wastewater_plant];",
"node[amenity~\"^(recycling|waste_basket)$\"];",
"way[landuse=landfill];",
"way[man_made=wastewater_plant];",
"way[amenity=recycling];",
"relation[landuse=landfill];",
"relation[man_made=wastewater_plant];",
"relation[amenity=recycling];",
")"
]
},
"feature": {
"pre": [
"{% if tags.landuse == 'landfill' %}",
" {% set key = 'landuse' %}",
" {% set value = tags.landuse %}",
"{% elseif tags.man_made == 'wastewater_plant' %}",
" {% set key = 'man_made' %}",
" {% set value = tags.man_made %}",
"{% elseif tags.amenity == 'recycling' or tags.amenity == 'waste_basket' %}",
" {% set key = 'amenity' %}",
" {% set value = tags.amenity %}",
"{% endif %}",
"{% set kv = key ~ '=' ~ value %}"
],
"description": "{{ tagTrans(key, value) }}",
"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('leisure', value) }}</td>",
" </tr>",
" {% endif %}",
"{% endfor %}",
" <tr>",
" <td>{{ markerCircle({})|raw }}</td>",
" <td>{{ trans('other') }}</td>",
" </tr>",
"</table>"
],
"const": {
"amenity=recycling": {
"minZoom": 13,
"sign": "<img src='maki:recycling'>"
},
"amenity=waste_basket": {
"minZoom": 18,
"sign": "<img src='maki:waste-basket'>"
}
}
}