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.

109 lines
4.1 KiB

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