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.

109 lines
3.6 KiB

  1. {
  2. "type": "overpass",
  3. "name": {
  4. "ast": "Basures",
  5. "cs": "Nakládání s odpady",
  6. "de": "Entsorgung",
  7. "en": "Disposal",
  8. "fr": "Rebuts",
  9. "it": "Smaltimento",
  10. "ja": "処理場",
  11. "nl": "Afvalverwijdering",
  12. "ru": "Переработка отходов"
  13. },
  14. "query": {
  15. "13": [
  16. "(",
  17. "node[landuse=landfill];",
  18. "node[man_made=wastewater_plant];",
  19. "node[amenity=recycling][recycling_type=centre];",
  20. "way[landuse=landfill];",
  21. "way[man_made=wastewater_plant];",
  22. "way[amenity=recycling][recycling_type=centre];",
  23. "relation[landuse=landfill];",
  24. "relation[man_made=wastewater_plant];",
  25. "relation[amenity=recycling][recycling_type=centre];",
  26. ")"
  27. ],
  28. "15": [
  29. "(",
  30. "node[landuse=landfill];",
  31. "node[man_made=wastewater_plant];",
  32. "node[amenity=recycling];",
  33. "way[landuse=landfill];",
  34. "way[man_made=wastewater_plant];",
  35. "way[amenity=recycling];",
  36. "relation[landuse=landfill];",
  37. "relation[man_made=wastewater_plant];",
  38. "relation[amenity=recycling];",
  39. ")"
  40. ],
  41. "18": [
  42. "(",
  43. "node[landuse=landfill];",
  44. "node[man_made=wastewater_plant];",
  45. "node[amenity~\"^(recycling|waste_basket)$\"];",
  46. "way[landuse=landfill];",
  47. "way[man_made=wastewater_plant];",
  48. "way[amenity=recycling];",
  49. "relation[landuse=landfill];",
  50. "relation[man_made=wastewater_plant];",
  51. "relation[amenity=recycling];",
  52. ")"
  53. ]
  54. },
  55. "feature": {
  56. "pre": [
  57. "{% if tags.landuse == 'landfill' %}",
  58. " {% set key = 'landuse' %}",
  59. " {% set value = tags.landuse %}",
  60. "{% elseif tags.man_made == 'wastewater_plant' %}",
  61. " {% set key = 'man_made' %}",
  62. " {% set value = tags.man_made %}",
  63. "{% elseif tags.amenity == 'recycling' or tags.amenity == 'waste_basket' %}",
  64. " {% set key = 'amenity' %}",
  65. " {% set value = tags.amenity %}",
  66. "{% endif %}",
  67. "{% set kv = key ~ '=' ~ value %}"
  68. ],
  69. "description": "{{ tagTrans(key, value) }}",
  70. "body": [
  71. "{% if tags.recycling_type %}",
  72. "{{ keyTrans('recycling_type') }}: {{ tagTrans('recycling_type', tags.recycling_type) }}",
  73. "{% endif %}"
  74. ],
  75. "markerSign": [
  76. "{% if const[kv] %}",
  77. "{{ const[kv].sign|raw }}",
  78. "{% endif %}"
  79. ]
  80. },
  81. "info": [
  82. "<table>",
  83. "{% for kv, data in const %}",
  84. " {% if map.zoom >= data.minZoom %}",
  85. " {% set key = kv|split('=')[0] %}",
  86. " {% set value = kv|split('=')[1] %}",
  87. " <tr>",
  88. " <td>{{ markerCircle({})|raw }}<div class='sign'>{{ data.sign|raw }}</div></td>",
  89. " <td>{{ tagTrans('leisure', value) }}</td>",
  90. " </tr>",
  91. " {% endif %}",
  92. "{% endfor %}",
  93. " <tr>",
  94. " <td>{{ markerCircle({})|raw }}</td>",
  95. " <td>{{ trans('other') }}</td>",
  96. " </tr>",
  97. "</table>"
  98. ],
  99. "const": {
  100. "amenity=recycling": {
  101. "minZoom": 13,
  102. "sign": "<img src='maki:recycling'>"
  103. },
  104. "amenity=waste_basket": {
  105. "minZoom": 18,
  106. "sign": "<img src='maki:waste-basket'>"
  107. }
  108. }
  109. }