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.2 KiB

  1. {
  2. "type": "overpass",
  3. "name": {
  4. "de": "Denkmäler",
  5. "en": "Memorials",
  6. "fr": "Mémoriaux",
  7. "hu": "Emlékművek",
  8. "pt-br": "Memoriais"
  9. },
  10. "query": {
  11. "11": [
  12. "(",
  13. "node[historic~\"^(monument)$\"];",
  14. "way[historic~\"^(monument)$\"];",
  15. "relation[historic~\"^(monument)$\"];",
  16. ")"
  17. ],
  18. "14": [
  19. "(",
  20. "node[historic~\"^(memorial|monument)$\"];",
  21. "way[historic~\"^(memorial|monument)$\"];",
  22. "relation[historic~\"^(memorial|monument)$\"];",
  23. ")"
  24. ]
  25. },
  26. "feature": {
  27. "pre": [
  28. "{% set value = tags.historic %}",
  29. "{% if tags.historic == 'memorial' and tags.memorial %}",
  30. " {% set value = tags.historic ~ ' memorial=' ~ tags.memorial %}",
  31. "{% elseif tags.historic == 'memorial' and attribute(tags, 'memorial:type') %}",
  32. " {% set value = tags.historic ~ ' memorial=' ~ attribute(tags, 'memorial:type') %}",
  33. "{% endif %}"
  34. ],
  35. "description": "{{ tagTransList('historic', value) }}",
  36. "body": [
  37. "<ul>",
  38. "{% if tags.inscription %}",
  39. " <li class='hasSymbol'>",
  40. " <i class=\"fa fa-pencil-alt\" aria-hidden=\"true\"></i>",
  41. " <span class='key'>{{ keyTrans('inscription') }}:</span>",
  42. " <span class='value'>{{ localizedTag(tags, 'inscription') }}</span>",
  43. " </li>",
  44. "{% elseif attribute(tags, 'inscription:url') %}",
  45. " <li class='hasSymbol'>",
  46. " <i class=\"fa fa-pencil-alt\" aria-hidden=\"true\"></i>",
  47. " <span class='key'><a href=\"{{ attribute(tags, 'inscription:url') }}\">{{ keyTrans('inscription') }}</a></span>",
  48. " </li>",
  49. "{% endif %}",
  50. "",
  51. "{% if attribute(tags, 'historic:civilization') %}",
  52. " <li class='hasSymbol'>",
  53. " <i class=\"fa fa-users\" aria-hidden=\"true\"></i>",
  54. " <span class='key'>{{ keyTrans('historic:civilization') }}:</span>",
  55. " <span class='value'>{{ tagTrans('historic:civilization', attribute(tags, 'historic:civilization')) }}</span>",
  56. " </li>",
  57. "{% endif %}",
  58. "",
  59. "{% if attribute(tags, 'memorial:conflict') %}",
  60. " <li class='hasSymbol'>",
  61. " <i class=\"fa fa-bolt\" aria-hidden=\"true\"></i>",
  62. " <span class='key'>{{ keyTrans('memorial:conflict') }}:</span>",
  63. " <span class='value'>{{ tagTransList('memorial:conflict', attribute(tags, 'memorial:conflict')) }}</span>",
  64. " </li>",
  65. "{% endif %}",
  66. "",
  67. "{% if tags.artist_name %}",
  68. " <li class='hasSymbol'>",
  69. " <i class=\"fa fa-palette\" aria-hidden=\"true\"></i>",
  70. " <span class='key'>{{ keyTrans('artist_name') }}:</span>",
  71. " <span class='value'>{{ enumerate(tags.artist_name) }}</span>",
  72. " </li>",
  73. "{% endif %}",
  74. "</ul>"
  75. ],
  76. "markerSign": "{{ const[value].sign|raw }}"
  77. },
  78. "info": [
  79. "<table>",
  80. "{% for value, data in const %}",
  81. "{% if data.zoom <= map.zoom %}",
  82. " <tr>",
  83. " <td>{{ markerCircle({})|raw }}<div class='sign'>{{ data.sign|raw }}</div></td>",
  84. " <td>{{ tagTrans('historic', value) }}</td>",
  85. " </tr>",
  86. "{% endif %}",
  87. "{% endfor %}",
  88. "{% if 14 <= map.zoom %}",
  89. " <tr>",
  90. " <td>{{ markerCircle({})|raw }}<div class='sign'></div></td>",
  91. " <td>{{ trans('other') }}</td>",
  92. " </tr>",
  93. "{% endif %}",
  94. "</table>"
  95. ],
  96. "const": {
  97. "memorial": {
  98. "sign": "<span style='position: relative; top: -2px;'><img src='maki:monument?size=11'></span>",
  99. "zoom": 14
  100. },
  101. "memorial memorial=plaque": {
  102. "sign": "",
  103. "zoom": 14
  104. },
  105. "monument": {
  106. "sign": "<img data-src='maki:monument?size=15'>",
  107. "zoom": 11
  108. }
  109. }
  110. }