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.

187 lines
6.9 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 memtype = 'yes' %}",
  29. "{% if tags.historic == 'monument' and tags.monument == 'war_monument' %}",
  30. " {% set memtype = 'war_memorial' %}",
  31. "{% elseif tags.memorial %}",
  32. " {% set memtype = tags.memorial %}",
  33. "{% elseif attribute(tags, 'memorial:type') %}",
  34. " {% set memtype = attribute(tags, 'memorial:type') %}",
  35. "{% elseif attribute(tags, 'monument') %}",
  36. " {% set memtype = attribute(tags, 'monument') %}",
  37. "{% endif %}"
  38. ],
  39. "description": [
  40. "{% if tags.historic == 'monument' and tags.monument == 'war_monument' %}",
  41. " {{ tagTrans('historic', 'monument monument=war_monument') }}",
  42. "{% elseif memtype == 'yes' %}",
  43. " {{ tagTrans('historic', tags.historic) }}",
  44. "{% else %}",
  45. " {{ tagTrans('historic', 'memorial memorial=' ~ memtype) }}",
  46. "{% endif %}",
  47. "",
  48. "{% if tags.historic == 'monument' %}",
  49. " ({{ tagTrans('historic', 'monument') }})",
  50. "{% endif %}"
  51. ],
  52. "priority": [
  53. "{% if tags.historic == 'monument' %}0[% else %}1{% endif %}"
  54. ],
  55. "body": [
  56. "<ul>",
  57. "{% if tags.inscription %}",
  58. " <li class='hasSymbol'>",
  59. " <i class=\"fa fa-pencil-alt\" aria-hidden=\"true\"></i>",
  60. " <span class='key'>{{ keyTrans('inscription') }}:</span>",
  61. " <span class='value'>{{ localizedTag(tags, 'inscription') }}</span>",
  62. " </li>",
  63. "{% elseif attribute(tags, 'inscription:url') %}",
  64. " <li class='hasSymbol'>",
  65. " <i class=\"fa fa-pencil-alt\" aria-hidden=\"true\"></i>",
  66. " <span class='key'><a href=\"{{ attribute(tags, 'inscription:url') }}\">{{ keyTrans('inscription') }}</a></span>",
  67. " </li>",
  68. "{% endif %}",
  69. "",
  70. "{% if attribute(tags, 'historic:civilization') %}",
  71. " <li class='hasSymbol'>",
  72. " <i class=\"fa fa-users\" aria-hidden=\"true\"></i>",
  73. " <span class='key'>{{ keyTrans('historic:civilization') }}:</span>",
  74. " <span class='value'>{{ tagTrans('historic:civilization', attribute(tags, 'historic:civilization')) }}</span>",
  75. " </li>",
  76. "{% endif %}",
  77. "",
  78. "{% if attribute(tags, 'memorial:conflict') %}",
  79. " <li class='hasSymbol'>",
  80. " <i class=\"fa fa-bolt\" aria-hidden=\"true\"></i>",
  81. " <span class='key'>{{ keyTrans('memorial:conflict') }}:</span>",
  82. " <span class='value'>{{ tagTransList('memorial:conflict', attribute(tags, 'memorial:conflict')) }}</span>",
  83. " </li>",
  84. "{% endif %}",
  85. "",
  86. "{% if tags.artist_name %}",
  87. " <li class='hasSymbol'>",
  88. " <i class=\"fa fa-palette\" aria-hidden=\"true\"></i>",
  89. " <span class='key'>{{ keyTrans('artist_name') }}:</span>",
  90. " <span class='value'>{{ enumerate(tags.artist_name) }}</span>",
  91. " </li>",
  92. "{% endif %}",
  93. "</ul>"
  94. ],
  95. "markerSign": "{% if memtype == 'yes' %}<img data-src=\"maki:monument\">{% else %}{{ const[memtype].sign|raw }}{% endif %}"
  96. },
  97. "info": [
  98. "<table>",
  99. "{% for value, data in const %}",
  100. "{% if data.zoom <= map.zoom %}",
  101. " <tr>",
  102. " <td>{{ markerCircle({})|raw }}<div class='sign'>{{ data.sign|raw }}</div></td>",
  103. " <td>{{ tagTrans('historic', value) }}</td>",
  104. " </tr>",
  105. "{% endif %}",
  106. "{% endfor %}",
  107. "{% if 14 <= map.zoom %}",
  108. " <tr>",
  109. " <td>{{ markerCircle({})|raw }}<div class='sign'><img src='maki:monument'></div></td>",
  110. " <td>{{ trans('other') }}</td>",
  111. " </tr>",
  112. "{% endif %}",
  113. "</table>"
  114. ],
  115. "const1": {
  116. "yes": {
  117. "sign": "<img data-src='maki:monument?size=15'>",
  118. "zoom": 11
  119. },
  120. "memorial": {
  121. "sign": "<span style='position: relative; top: -2px;'><img src='maki:monument?size=11'></span>",
  122. "zoom": 14
  123. }
  124. },
  125. "const": {
  126. "plaque": {
  127. "sign": "<img data-src='img/plaque.svg'>",
  128. "zoom": 14
  129. },
  130. "blue_plaque": {
  131. "sign": "<img data-src='img/blue_plaque.svg'>",
  132. "zoom": 14
  133. },
  134. "statue": {
  135. "sign": "",
  136. "zoom": 14
  137. },
  138. "war_memorial": {
  139. "sign": "<img data-src='maki:horse-riding'>",
  140. "zoom": 14
  141. }
  142. },
  143. "filter": {
  144. "type": {
  145. "name": "{{ trans('filter:type') }}",
  146. "show_default": "true",
  147. "type": "select",
  148. "values": "{% for k, v in const %}<option value='{{ k }}' query='(nwr[memorial=\"{{ k }}\"];nwr[\"memorial:type\"=\"{{ k }}\"];nwr[\"monument\"=\"{{ k }}\"];{% if k == 'war_memorial' %}nwr[\"monument\"=\"war_monument\"];{% endif %})'>{{ tagTrans('historic', 'memorial memorial=' ~ k) }}</option>{% endfor %}"
  149. },
  150. "conflict": {
  151. "key": "memorial:conflict",
  152. "op": "has",
  153. "name": "{{ keyTrans('memorial:conflict') }}",
  154. "type": "select",
  155. "values": [
  156. "WW1",
  157. "WW2"
  158. ],
  159. "valueName": "{{ tagTrans('memorial:conflict', value) }}"
  160. },
  161. "civilization": {
  162. "key": "historic:civilization",
  163. "op": "has",
  164. "name": "{{ keyTrans('historic:civilization') }}",
  165. "type": "select",
  166. "values": [
  167. "ancient_egyptian",
  168. "ancient_greek",
  169. "ancient_roman",
  170. "byzantine",
  171. "celtic",
  172. "etruscan",
  173. "imperial_chinese",
  174. "korean",
  175. "medieval",
  176. "modern",
  177. "neolithic",
  178. "nuragic",
  179. "ottoman",
  180. "prehistoric",
  181. "roman",
  182. "western_roman"
  183. ],
  184. "valueName": "{{ tagTrans('historic:civilization', value) }}"
  185. }
  186. }
  187. }