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.

134 lines
4.5 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. node[amenity~"^(arts_centre|cinema|community_centre|fountain|studio|theatre)$"];
  31. way[amenity~"^(arts_centre|cinema|community_centre|fountain|studio|theatre)$"];
  32. relation[amenity~"^(arts_centre|cinema|community_centre|fountain|studio|theatre)$"];
  33. node[tourism~"^(artwork|gallery|museum|theme_park)$"];
  34. way[tourism~"^(artwork|gallery|museum|theme_park)$"];
  35. relation[tourism~"^(artwork|gallery|museum|theme_park)$"];
  36. nwr[amenity=clock][display~"^(sundial|unorthodox)$"];
  37. nwr[amenity=clock]["display:sundial"];
  38. nwr[amenity=clock]["display:unorthodox"];
  39. nwr[shop~"^(art)$"];
  40. )
  41. feature:
  42. pre: |-
  43. {% if tags.amenity in [ 'arts_centre', 'cinema', 'community_centre', 'fountain', 'studio', 'theatre', 'clock' ] %}
  44. {% set key = 'amenity' %}
  45. {% set value = tags.amenity %}
  46. {% elseif tags.tourism %}
  47. {% set key = 'tourism' %}
  48. {% set value = tags.tourism %}
  49. {% elseif tags.shop %}
  50. {% set key = 'shop' %}
  51. {% set value = tags.shop %}
  52. {% endif %}
  53. description: |-
  54. {% if key == 'shop' %}
  55. {{ keyTrans(key) }} ({{ tagTrans(key, value) }})
  56. {% elseif tags.amenity == 'clock' %}
  57. {% if tags.display == 'sundial' or attribute(tags, 'display:sundial') %}{{ tagTrans('amenity', 'clock display=sundial') }}{% endif %}
  58. {% if tags.display == 'unorthodox' or attribute(tags, 'display:unorthodox') %}{{ tagTrans('amenity', 'clock display=unorthodox') }}{% endif %}
  59. {% else %}
  60. {{ tagTrans(key, value) }}
  61. {% endif %}
  62. {% if tags.tourism == 'museum' and tags.museum %}
  63. ({{ tagTrans('museum', tags.museum) }})
  64. {% endif %}
  65. {% if tags.amenity == 'theatre' and attribute(tags, 'theatre:genre') %}
  66. ({{ tagTrans('theatre:genre', attribute(tags, 'theatre:genre')) }})
  67. {% endif %}
  68. {% if tags.amenity == 'community_centre' and tags.community_centre %}
  69. ({{ tagTrans('community_centre', tags.community_centre) }})
  70. {% endif %}
  71. body: |-
  72. <ul>
  73. {% if tags.inscription %}
  74. <li class='hasSymbol'>
  75. <i class="fa fa-pencil-alt" aria-hidden="true"></i>
  76. <span class='key'>{{ keyTrans('inscription') }}:</span>
  77. <span class='value'>{{ localizedTag(tags, 'inscription')|nl2br }}</span>
  78. </li>
  79. {% elseif attribute(tags, 'inscription:url') %}
  80. <li class='hasSymbol'>
  81. <i class="fa fa-pencil-alt" aria-hidden="true"></i>
  82. <span class='key'><a href="{{ attribute(tags, 'inscription:url') }}">{{ keyTrans('inscription') }}</a></span>
  83. </li>
  84. {% endif %}
  85. {% if tags.artist_name %}
  86. <li class='hasSymbol'>
  87. <i class="fa fa-palette" aria-hidden="true"></i>
  88. <span class='key'>{{ keyTrans('artist_name') }}:</span>
  89. <span class='value'>{{ enumerate(tags.artist_name) }}</span>
  90. </li>
  91. {% endif %}
  92. {% if tags.material %}
  93. <li class='hasSymbol'>
  94. <img data-src="maki:warehouse">
  95. <span class='key'>{{ keyTrans('material') }}:</span>
  96. <span class='value'>{{ tagTransList('material', tags.material) }}</span>
  97. </li>
  98. {% endif %}
  99. </ul>
  100. markerSign: '{{ attribute(const, key ~ "=" ~ value)|raw }}'
  101. const:
  102. amenity=arts_centre: 🎨
  103. amenity=cinema: 🎦
  104. amenity=clock: <i class="fas fa-clock"></i>
  105. amenity=community_centre: <i class="fas fa-users" aria-hidden="true"></i>
  106. amenity=fountain:
  107. amenity=studio: <i class="fas fa-microphone"></i>
  108. amenity=theatre: 🎭
  109. tourism=artwork: '🎨 '
  110. tourism=gallery: 🖼
  111. tourism=museum: '🏛 '
  112. tourism=theme_park: <img data-src='maki:amusement-park'>
  113. shop=art: <i class="fa fa-shopping-cart"></i>
  114. info: |-
  115. <table>
  116. {% for value, sign in const %}
  117. <tr>
  118. <td>{{ markerCircle({})|raw }}<div class='sign'>{{ sign|raw }}</div></td>
  119. <td>{{ tagTrans(value|split('=')[0], value|split('=')[1]) }}</td>
  120. </tr>
  121. {% endfor %}
  122. </table>
  123. filter:
  124. type:
  125. name: '{{ trans("filter:type") }}'
  126. show_default: 'true'
  127. query: nwr[{{ value }}]
  128. type: select
  129. values: '{% for k, v in const %}<option value="{{ k }}">{{ trans("tag:" ~ k) }}</option>{% endfor %}<option value="other" query="nwr[amenity=fountain]">{{ trans("other") }}</option>'
  130. valueName: '{{ trans("tag:" ~ value) }}'