Main categories of OpenStreetBrowser with public transport zoom level
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.

110 lines
4.0 KiB

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