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.

80 lines
2.9 KiB

  1. {
  2. "type": "overpass",
  3. "name": {
  4. "en": "Christmas"
  5. },
  6. "query": {
  7. "14": [
  8. "(",
  9. "node[\"xmas:feature\"];",
  10. "way[\"xmas:feature\"];",
  11. "relation[\"xmas:feature\"];",
  12. ")"
  13. ]
  14. },
  15. "feature": {
  16. "title": "{{ attribute(tags, \"xmas:name\")|default(trans(\"unnamed\")) }}",
  17. "description": "{{ tagTransList(\"xmas:feature\", attribute(tags, \"xmas:feature\")) }}",
  18. "body": [
  19. "{% if attribute(tags, 'xmas:location') %}",
  20. "<li class='hasSymbol'>",
  21. " <i class=\"fa fa-globe\" aria-hidden=\"true\"></i>",
  22. " <span class='key'>{{ keyTrans('location') }}:</span>",
  23. " <span class='value'>",
  24. " {{ attribute(tags, 'xmas:location') }}",
  25. " </span>",
  26. "</li>",
  27. "{% endif %}",
  28. "",
  29. "{% if attribute(tags, 'xmas:day_date') %}",
  30. "<li class='hasSymbol'>",
  31. " <i class=\"fa fa-clock-o\" aria-hidden=\"true\"></i>",
  32. " <span class='key'>Open:</span>",
  33. " <span class='value'>",
  34. " {{ attribute(tags, 'xmas:day_date') }}",
  35. " </span>",
  36. "</li>",
  37. "{% endif %}",
  38. "",
  39. "{% if attribute(tags, 'xmas:opening_hours') %}",
  40. "<li class='hasSymbol'>",
  41. " <i class=\"fa fa-clock-o\" aria-hidden=\"true\"></i>",
  42. " <span class='key'>{{ keyTrans('opening_hours') }}:</span>",
  43. " <span class='value'>",
  44. " {{ attribute(tags, 'xmas:opening_hours') }}",
  45. " </span>",
  46. "</li>",
  47. "{% endif %}",
  48. "",
  49. "{% if attribute(tags, 'xmas:url') %}",
  50. "<li class='hasSymbol'>",
  51. " <i class=\"fa fa-globe\" aria-hidden=\"true\"></i>",
  52. " <span class='key'>{{ keyTrans('website') }}:</span>",
  53. " <span class='value'>",
  54. " <a target='_blank' href='{{ attribute(tags, 'xmas:url')|websiteUrl }}'>{{ attribute(tags, 'xmas:url') }}</a>",
  55. " </span>",
  56. "</li>",
  57. "{% endif %}"
  58. ],
  59. "markerSign": [
  60. "{{ attribute(const, attribute(tags, 'xmas:feature'))|raw }}",
  61. ""
  62. ]
  63. },
  64. "const": {
  65. "market": "<img src='maki:commercial'>",
  66. "tree": "<i class=\"fa fa-tree\" aria-hidden=\"true\"></i>",
  67. "shop": "<i class=\"fa fa-shopping-basket\" aria-hidden=\"true\"></i>",
  68. "event": "<img src='maki:amusement-park'>"
  69. },
  70. "info": [
  71. "<table>",
  72. "{% for value, icon in const %}",
  73. " <tr>",
  74. " <td>{{ markerCircle({})|raw }}<div class='sign'>{{ icon|raw }}</div></td>",
  75. " <td>{{ tagTrans('xmas:feature', value) }}</td>",
  76. " </tr>",
  77. "{% endfor %}",
  78. "</table>"
  79. ]
  80. }