My main repository
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.

73 lines
2.1 KiB

  1. {
  2. "type": "overpass",
  3. "en": "Recycling",
  4. "ru": "Переработка отходов"
  5. },
  6. "query": {
  7. "13": [
  8. "(",
  9. "node[amenity=recycling][recycling_type=centre];",
  10. "way[amenity=recycling][recycling_type=centre];",
  11. "relation[amenity=recycling][recycling_type=centre];",
  12. ")"
  13. ],
  14. "15": [
  15. "(",
  16. "node[amenity=recycling];",
  17. "way[amenity=recycling];",
  18. "relation[amenity=recycling];",
  19. ")"
  20. ],
  21. "18": [
  22. "(",
  23. "node[amenity=recycling];",
  24. "way[amenity=recycling];",
  25. "relation[amenity=recycling];",
  26. ")"
  27. ]
  28. },
  29. "feature": {
  30. "pre": [
  31. "{% if tags.amenity == 'recycling' %}",
  32. " {% set key = 'amenity' %}",
  33. " {% set value = tags.amenity %}",
  34. "{% endif %}",
  35. "{% set kv = key ~ '=' ~ value %}"
  36. ],
  37. "description": "{{ tagTrans(key, value) }}",
  38. "body": [
  39. "{% if tags.recycling_type %}",
  40. "{{ keyTrans('recycling_type') }}: {{ tagTrans('recycling_type', tags.recycling_type) }}",
  41. "{% endif %}"
  42. ],
  43. "markerSign": [
  44. "{% if const[kv] %}",
  45. "{{ const[kv].sign|raw }}",
  46. "{% endif %}"
  47. ]
  48. },
  49. "info": [
  50. "<table>",
  51. "{% for kv, data in const %}",
  52. " {% if map.zoom >= data.minZoom %}",
  53. " {% set key = kv|split('=')[0] %}",
  54. " {% set value = kv|split('=')[1] %}",
  55. " <tr>",
  56. " <td>{{ markerCircle({})|raw }}<div class='sign'>{{ data.sign|raw }}</div></td>",
  57. " <td>{{ tagTrans('leisure', value) }}</td>",
  58. " </tr>",
  59. " {% endif %}",
  60. "{% endfor %}",
  61. " <tr>",
  62. " <td>{{ markerCircle({})|raw }}</td>",
  63. " <td>{{ trans('other') }}</td>",
  64. " </tr>",
  65. "</table>"
  66. ],
  67. "const": {
  68. "amenity=recycling": {
  69. "minZoom": 13,
  70. "sign": "<img src='maki:recycling'>"
  71. }
  72. }
  73. }