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.

84 lines
2.3 KiB

  1. {
  2. "type": "overpass",
  3. "name": {
  4. "ast": "Recréu",
  5. "cs": "Volný čas",
  6. "de": "Freizeit",
  7. "el": "Αναψυχή",
  8. "en": "Leisure",
  9. "fr": "Loisirs",
  10. "it": "Tempo libero",
  11. "ja": "レジャー",
  12. "nl": "Vrije tijd",
  13. "ro": "Timp liber",
  14. "ru": "Досуг",
  15. "uk": "Дозвілля"
  16. },
  17. "query": {
  18. "15": [
  19. "(",
  20. "node[leisure];",
  21. "way[leisure];",
  22. "relation[leisure];",
  23. ")"
  24. ]
  25. },
  26. "feature": {
  27. "description": [
  28. "{{ tagTrans('leisure', tags.leisure) }}",
  29. "{% if tags.leisure == 'pitch' and tags.sport %}",
  30. "- {{ tagTransList('sport', tags.sport) }}",
  31. "{% endif %}"
  32. ],
  33. "markerSign": [
  34. "{% if const[tags.leisure] %}",
  35. "{{ const[tags.leisure].sign|raw }}",
  36. "{% endif %}"
  37. ],
  38. "markerSymbol": [
  39. "{% if const[tags.leisure] %}",
  40. "{{ markerPointer(const[tags.leisure].symbol)|raw }}",
  41. "{% else %}",
  42. "{{ markerPointer({})|raw }}",
  43. "{% endif %}"
  44. ],
  45. "listMarkerSymbol": [
  46. "{% if const[tags.leisure] %}",
  47. "{{ markerCircle(const[tags.leisure].symbol)|raw }}",
  48. "{% else %}",
  49. "{{ markerCircle({})|raw }}",
  50. "{% endif %}"
  51. ]
  52. },
  53. "info": [
  54. "<table>",
  55. "{% for value, data in const %}",
  56. " <tr>",
  57. " <td>{{ markerCircle(data.symbol)|raw }}<div class='sign'>{{ data.sign|raw }}</div></td>",
  58. " <td>{{ tagTrans('leisure', value) }}</td>",
  59. " </tr>",
  60. "{% endfor %}",
  61. " <tr>",
  62. " <td>{{ markerCircle({})|raw }}</td>",
  63. " <td>{{ trans('other') }}</td>",
  64. " </tr>",
  65. "</table>"
  66. ],
  67. "const": {
  68. "garden": {
  69. "symbol": {
  70. "fillColor": "#00cf00"
  71. },
  72. "sign": "<img src='maki:garden'>"
  73. },
  74. "park": {
  75. "symbol": {
  76. "fillColor": "#00cf00"
  77. },
  78. "sign": "<img src='maki:park'>"
  79. },
  80. "playground": {
  81. "symbol": {},
  82. "sign": "<img src='maki:playground'>"
  83. }
  84. }
  85. }