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.

166 lines
6.0 KiB

6 years ago
  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. "filter": {
  111. "type": {
  112. "name": "{{ trans('filter:type') }}",
  113. "type": "select",
  114. "values": {
  115. "monument": {
  116. "name": "{{ tagTrans('historic', 'monument') }}",
  117. "query": "nwr[historic=monument]"
  118. },
  119. "memorial": {
  120. "name": "{{ tagTrans('historic', 'memorial') }}",
  121. "query": "nwr[historic=memorial]"
  122. },
  123. "stolperstein": {
  124. "name": "{{ tagTrans('historic', 'memorial memorial=stolperstein') }}",
  125. "query": "(nwr[memorial=stolperstein];nwr[\"memorial:type\"=stolperstein];)"
  126. }
  127. }
  128. },
  129. "conflict": {
  130. "key": "memorial:conflict",
  131. "op": "has",
  132. "name": "{{ keyTrans('memorial:conflict') }}",
  133. "type": "select",
  134. "values": [
  135. "WW1",
  136. "WW2"
  137. ],
  138. "valueName": "{{ tagTrans('memorial:conflict', value) }}"
  139. },
  140. "civilization": {
  141. "key": "historic:civilization",
  142. "op": "has",
  143. "name": "{{ keyTrans('historic:civilization') }}",
  144. "type": "select",
  145. "values": [
  146. "ancient_egyptian",
  147. "ancient_greek",
  148. "ancient_roman",
  149. "byzantine",
  150. "celtic",
  151. "etruscan",
  152. "imperial_chinese",
  153. "korean",
  154. "medieval",
  155. "modern",
  156. "neolithic",
  157. "nuragic",
  158. "ottoman",
  159. "prehistoric",
  160. "roman",
  161. "western_roman"
  162. ],
  163. "valueName": "{{ tagTrans('historic:civilization', value) }}"
  164. }
  165. }
  166. }