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.

131 lines
4.4 KiB

  1. type: overpass
  2. name:
  3. ast: Cultura
  4. ca: Cultura
  5. cs: Kultura
  6. de: Kultur
  7. el: Πολιτισμός
  8. en: Culture
  9. es: Cultura
  10. et: Kultuur
  11. fr: Culture
  12. gl: Cultura
  13. hu: Kultúra
  14. it: Cultura
  15. ja: 文化
  16. nb: Kultur
  17. nl: Cultuur
  18. oc: Cultura
  19. pl: Kultura
  20. pt: Cultura
  21. pt-br: Cultura
  22. ro: Cultura
  23. ru: Культура
  24. sr: Култура
  25. tr: Kültür
  26. uk: 'Культура '
  27. query:
  28. 13: |-
  29. (
  30. nwr[amenity~"^(.*;|)(arts_centre|cinema|community_centre|fountain|studio|theatre)(;.*|)$"];
  31. nwr[tourism~"^(.*;|)(artwork|gallery|museum|theme_park)(;.*|)$"];
  32. nwr[amenity~"^(.*;|)clock(;.*|)$"][display~"^(sundial|unorthodox)$"];
  33. nwr[amenity~"^(.*;|)clock(;.*|)$"]["display:sundial"];
  34. nwr[amenity~"^(.*;|)clock(;.*|)$"]["display:unorthodox"];
  35. nwr[shop~"^(.*;|)(art)$"];
  36. )
  37. feature:
  38. pre: |-
  39. {% if tags.amenity in [ 'arts_centre', 'cinema', 'community_centre', 'fountain', 'studio', 'theatre', 'clock' ] %}
  40. {% set key = 'amenity' %}
  41. {% set value = tags.amenity %}
  42. {% elseif tags.tourism %}
  43. {% set key = 'tourism' %}
  44. {% set value = tags.tourism %}
  45. {% elseif tags.shop %}
  46. {% set key = 'shop' %}
  47. {% set value = tags.shop %}
  48. {% endif %}
  49. description: |-
  50. {% if key == 'shop' %}
  51. {{ keyTrans(key) }} ({{ tagTrans(key, value) }})
  52. {% elseif tags.amenity matches "/^(.*;|)clock(;.*|)$/" %}
  53. {% if tags.display == 'sundial' or attribute(tags, 'display:sundial') %}{{ tagTrans('amenity', 'clock display=sundial') }}{% endif %}
  54. {% if tags.display == 'unorthodox' or attribute(tags, 'display:unorthodox') %}{{ tagTrans('amenity', 'clock display=unorthodox') }}{% endif %}
  55. {% else %}
  56. {{ tagTransList(key, value) }}
  57. {% endif %}
  58. {% if tags.tourism matches "/^(.*;|)museum(;.*|)$/" and tags.museum %}
  59. ({{ tagTransList('museum', tags.museum) }})
  60. {% endif %}
  61. {% if tags.amenity matches "/^(.*;|)theatre(;.*|)$/" and attribute(tags, 'theatre:genre') %}
  62. ({{ tagTransList('theatre:genre', attribute(tags, 'theatre:genre')) }})
  63. {% endif %}
  64. {% if tags.amenity matches "/^(.*;|)community_centre(;.*|)$/" and tags.community_centre %}
  65. ({{ tagTransList('community_centre', tags.community_centre) }})
  66. {% endif %}
  67. body: |-
  68. <ul>
  69. {% if tags.inscription %}
  70. <li class='hasSymbol'>
  71. <i class="fa fa-pencil-alt" aria-hidden="true"></i>
  72. <span class='key'>{{ keyTrans('inscription') }}:</span>
  73. <span class='value'>{{ localizedTag(tags, 'inscription')|nl2br }}</span>
  74. </li>
  75. {% elseif attribute(tags, 'inscription:url') %}
  76. <li class='hasSymbol'>
  77. <i class="fa fa-pencil-alt" aria-hidden="true"></i>
  78. <span class='key'><a href="{{ attribute(tags, 'inscription:url') }}">{{ keyTrans('inscription') }}</a></span>
  79. </li>
  80. {% endif %}
  81. {% if tags.artist_name %}
  82. <li class='hasSymbol'>
  83. <i class="fa fa-palette" aria-hidden="true"></i>
  84. <span class='key'>{{ keyTrans('artist_name') }}:</span>
  85. <span class='value'>{{ enumerate(tags.artist_name) }}</span>
  86. </li>
  87. {% endif %}
  88. {% if tags.material %}
  89. <li class='hasSymbol'>
  90. <img data-src="maki:warehouse">
  91. <span class='key'>{{ keyTrans('material') }}:</span>
  92. <span class='value'>{{ tagTransList('material', tags.material) }}</span>
  93. </li>
  94. {% endif %}
  95. </ul>
  96. markerSign: '{{ attribute(const, key ~ "=" ~ value)|raw }}'
  97. const:
  98. amenity=arts_centre: 🎨
  99. amenity=cinema: 🎦
  100. amenity=clock: <i class="fas fa-clock"></i>
  101. amenity=community_centre: <i class="fas fa-users" aria-hidden="true"></i>
  102. amenity=fountain:
  103. amenity=studio: <i class="fas fa-microphone"></i>
  104. amenity=theatre: 🎭
  105. tourism=artwork: '🎨 '
  106. tourism=gallery: 🖼
  107. tourism=museum: '🏛 '
  108. tourism=theme_park: <img data-src='maki:amusement-park'>
  109. shop=art: <i class="fa fa-shopping-cart"></i>
  110. info: |-
  111. <table>
  112. {% for value, sign in const %}
  113. <tr>
  114. <td>{{ markerCircle({})|raw }}<div class='sign'>{{ sign|raw }}</div></td>
  115. <td>{{ tagTrans(value|split('=')[0], value|split('=')[1]) }}</td>
  116. </tr>
  117. {% endfor %}
  118. </table>
  119. filter:
  120. type:
  121. name: '{{ trans("filter:type") }}'
  122. show_default: 'true'
  123. query: |-
  124. nwr[{{ value|replace({ '=': '^' }) }}]
  125. type: select
  126. values: '{% for k, v in const %}<option value="{{ k }}">{{ trans("tag:" ~ k) }}</option>{% endfor %}<option value="other" query="nwr[amenity=fountain]">{{ trans("other") }}</option>'
  127. valueName: '{{ trans("tag:" ~ value) }}'