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.

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