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.

229 lines
7.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.memorial %}",
  30. " {% set memtype = tags.memorial %}",
  31. "{% elseif attribute(tags, 'memorial:type') %}",
  32. " {% set memtype = attribute(tags, 'memorial:type') %}",
  33. "{% elseif attribute(tags, 'monument') %}",
  34. " {% set memtype = attribute(tags, 'monument') %}",
  35. "{% elseif attribute(tags, 'memorial_type') %}",
  36. " {% set memtype = attribute(tags, 'memorial_type') %}",
  37. "{% endif %}",
  38. "",
  39. "{% set memgroup = memtype %}",
  40. "{% for value, data in const %}",
  41. "{% if memtype in data.alias %}",
  42. "{% set memgroup = value %}",
  43. "{% endif %}",
  44. "{% endfor %}"
  45. ],
  46. "description": [
  47. "{% if memtype != 'yes' and tags.historic == 'monument' %}",
  48. " {{ tagTrans('historic', 'monument') }}",
  49. "{% endif %}",
  50. "",
  51. "{% if memtype == 'yes' %}",
  52. " {{ tagTrans('historic', tags.historic) }}",
  53. "{% else %}",
  54. " {{ tagTrans('memorial', memtype) }}",
  55. "{% endif %}"
  56. ],
  57. "priority": [
  58. "{% if tags.historic == 'monument' %}0[% else %}1{% endif %}"
  59. ],
  60. "body": [
  61. "<ul>",
  62. "{% if tags.inscription %}",
  63. " <li class='hasSymbol'>",
  64. " <i class=\"fa fa-pencil-alt\" aria-hidden=\"true\"></i>",
  65. " <span class='key'>{{ keyTrans('inscription') }}:</span>",
  66. " <span class='value'>{{ localizedTag(tags, 'inscription') }}</span>",
  67. " </li>",
  68. "{% elseif attribute(tags, 'inscription:url') %}",
  69. " <li class='hasSymbol'>",
  70. " <i class=\"fa fa-pencil-alt\" aria-hidden=\"true\"></i>",
  71. " <span class='key'><a href=\"{{ attribute(tags, 'inscription:url') }}\">{{ keyTrans('inscription') }}</a></span>",
  72. " </li>",
  73. "{% endif %}",
  74. "",
  75. "{% if attribute(tags, 'historic:civilization') %}",
  76. " <li class='hasSymbol'>",
  77. " <i class=\"fa fa-users\" aria-hidden=\"true\"></i>",
  78. " <span class='key'>{{ keyTrans('historic:civilization') }}:</span>",
  79. " <span class='value'>{{ tagTrans('historic:civilization', attribute(tags, 'historic:civilization')) }}</span>",
  80. " </li>",
  81. "{% endif %}",
  82. "",
  83. "{% if attribute(tags, 'memorial:conflict') %}",
  84. " <li class='hasSymbol'>",
  85. " <i class=\"fa fa-bolt\" aria-hidden=\"true\"></i>",
  86. " <span class='key'>{{ keyTrans('memorial:conflict') }}:</span>",
  87. " <span class='value'>{{ tagTransList('memorial:conflict', attribute(tags, 'memorial:conflict')) }}</span>",
  88. " </li>",
  89. "{% endif %}",
  90. "",
  91. "{% if tags.artist_name %}",
  92. " <li class='hasSymbol'>",
  93. " <i class=\"fa fa-palette\" aria-hidden=\"true\"></i>",
  94. " <span class='key'>{{ keyTrans('artist_name') }}:</span>",
  95. " <span class='value'>{{ enumerate(tags.artist_name) }}</span>",
  96. " </li>",
  97. "{% endif %}",
  98. "</ul>"
  99. ],
  100. "markerSign": "{{ const[memgroup].sign|raw }}"
  101. },
  102. "info": [
  103. "<table>",
  104. "{% for value, data in const %}",
  105. "{% if data.zoom <= map.zoom %}",
  106. " <tr>",
  107. " <td>{{ markerCircle({})|raw }}<div class='sign'>{{ data.sign|raw }}</div></td>",
  108. " <td>{{ tagTrans('memorial', value) }}{% for alias in data.alias %}, {{ tagTrans('memorial', alias) }}{% endfor %}</td>",
  109. " </tr>",
  110. "{% endif %}",
  111. "{% endfor %}",
  112. "{% if 14 <= map.zoom %}",
  113. " <tr>",
  114. " <td>{{ markerCircle({})|raw }}<div class='sign'><img src='maki:monument'></div></td>",
  115. " <td>{{ trans('other') }}</td>",
  116. " </tr>",
  117. "{% endif %}",
  118. "</table>"
  119. ],
  120. "const": {
  121. "plaque": {
  122. "alias": [ "plate" ],
  123. "sign": "<img data-src='img/plaque.svg'>",
  124. "zoom": 14
  125. },
  126. "blue_plaque": {
  127. "sign": "<img data-src='img/blue_plaque.svg'>",
  128. "zoom": 14
  129. },
  130. "statue": {
  131. "sign": "<i class=\"fas fa-female\"></i>",
  132. "zoom": 14
  133. },
  134. "war_memorial": {
  135. "alias": [ "war_monument" ],
  136. "sign": "<img data-src='maki:horse-riding'>",
  137. "zoom": 14
  138. },
  139. "stolperstein": {
  140. "sign": "",
  141. "zoom": 14
  142. },
  143. "stone": {
  144. "sign": "",
  145. "zoom": 14
  146. },
  147. "bust": {
  148. "alias": [ "person" ],
  149. "sign": "<i class=\"fas fa-user-alt\"></i>",
  150. "zoom": 14
  151. },
  152. "stele": {
  153. "alias": [ "obelisk" ],
  154. "sign": "",
  155. "zoom": 14
  156. },
  157. "sculpture": {
  158. "sign": "",
  159. "zoom": 14
  160. },
  161. "ghost_bike": {
  162. "sign": "<i style=\"color: white;\" class=\"fas fa-bicycle\"></i>",
  163. "zoom": 14
  164. },
  165. "vehicle": {
  166. "alias": [ "tank" ],
  167. "sign": "<i class=\"fas fa-car\"></i>",
  168. "zoom": 14
  169. },
  170. "cross": {
  171. "sign": "<i class=\"fas fa-cross\"></i>",
  172. "zoom": 14
  173. },
  174. "flood_mark": {
  175. "alias": [ "high_water_mark" ],
  176. "sign": "<i class=\"fas fa-water\"></i>",
  177. "zoom": 14
  178. },
  179. "grave": {
  180. "alias": [ "graveyard" ],
  181. "sign": "",
  182. "zoom": 14
  183. }
  184. },
  185. "filter": {
  186. "type": {
  187. "name": "{{ trans('filter:type') }}",
  188. "show_default": "true",
  189. "type": "select",
  190. "values": "{% for k, v in const %}<option value='{{ k }}' query='nwr[~\"^(memorial|memorial:type|memorial_type|monument)$\"~\"^({{ k }}{% for alias in v.alias %}|{{ alias }}{% endfor %})$\"]'>{{ tagTrans('memorial', k) }}{% for alias in v.alias %}, {{ tagTrans('memorial', alias) }}{% endfor %}</option>{% endfor %}"
  191. },
  192. "conflict": {
  193. "key": "memorial:conflict",
  194. "op": "has",
  195. "name": "{{ keyTrans('memorial:conflict') }}",
  196. "type": "select",
  197. "values": [
  198. "WW1",
  199. "WW2"
  200. ],
  201. "valueName": "{{ tagTrans('memorial:conflict', value) }}"
  202. },
  203. "civilization": {
  204. "key": "historic:civilization",
  205. "op": "has",
  206. "name": "{{ keyTrans('historic:civilization') }}",
  207. "type": "select",
  208. "values": [
  209. "ancient_egyptian",
  210. "ancient_greek",
  211. "ancient_roman",
  212. "byzantine",
  213. "celtic",
  214. "etruscan",
  215. "imperial_chinese",
  216. "korean",
  217. "medieval",
  218. "modern",
  219. "neolithic",
  220. "nuragic",
  221. "ottoman",
  222. "prehistoric",
  223. "roman",
  224. "western_roman"
  225. ],
  226. "valueName": "{{ tagTrans('historic:civilization', value) }}"
  227. }
  228. }
  229. }