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.

67 lines
2.0 KiB

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