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.

81 lines
2.9 KiB

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