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.

74 lines
2.1 KiB

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