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.

247 lines
8.6 KiB

6 years ago
6 years ago
  1. {
  2. "type": "overpass",
  3. "query": {
  4. "11": [
  5. "(",
  6. "node[historic~\"^(monument)$\"];",
  7. "way[historic~\"^(monument)$\"];",
  8. "relation[historic~\"^(monument)$\"];",
  9. ")"
  10. ],
  11. "14": [
  12. "(",
  13. "node[historic~\"^(memorial|monument)$\"];",
  14. "way[historic~\"^(memorial|monument)$\"];",
  15. "relation[historic~\"^(memorial|monument)$\"];",
  16. ")"
  17. ]
  18. },
  19. "feature": {
  20. "pre": [
  21. "{% set memtype = 'yes' %}",
  22. "{% if tags.memorial %}",
  23. " {% set memtype = tags.memorial %}",
  24. "{% elseif attribute(tags, 'memorial:type') %}",
  25. " {% set memtype = attribute(tags, 'memorial:type') %}",
  26. "{% elseif attribute(tags, 'monument') %}",
  27. " {% set memtype = attribute(tags, 'monument') %}",
  28. "{% elseif attribute(tags, 'memorial_type') %}",
  29. " {% set memtype = attribute(tags, 'memorial_type') %}",
  30. "{% endif %}",
  31. "",
  32. "{% set memgroup = memtype %}",
  33. "{% for value, data in const %}",
  34. "{% if memtype in data.alias %}",
  35. "{% set memgroup = value %}",
  36. "{% endif %}",
  37. "{% endfor %}"
  38. ],
  39. "description": [
  40. "{{ tagTrans('historic', tags.historic) }}",
  41. "",
  42. "{% if memtype != 'yes' %}",
  43. " ({{ tagTrans('memorial', memtype) }})",
  44. "{% endif %}"
  45. ],
  46. "priority": [
  47. "{% if tags.historic == 'monument' %}0[% else %}1{% endif %}"
  48. ],
  49. "body": [
  50. "<ul>",
  51. "{% if tags.inscription %}",
  52. " <li class='hasSymbol'>",
  53. " <i class=\"fa fa-pencil-alt\" aria-hidden=\"true\"></i>",
  54. " <span class='key'>{{ keyTrans('inscription') }}:</span>",
  55. " <span class='value'>{{ localizedTag(tags, 'inscription')|nl2br }}</span>",
  56. " </li>",
  57. "{% elseif attribute(tags, 'inscription:url') %}",
  58. " <li class='hasSymbol'>",
  59. " <i class=\"fa fa-pencil-alt\" aria-hidden=\"true\"></i>",
  60. " <span class='key'><a href=\"{{ attribute(tags, 'inscription:url') }}\">{{ keyTrans('inscription') }}</a></span>",
  61. " </li>",
  62. "{% endif %}",
  63. "",
  64. "{% if attribute(tags, 'historic:civilization') %}",
  65. " <li class='hasSymbol'>",
  66. " <i class=\"fa fa-users\" aria-hidden=\"true\"></i>",
  67. " <span class='key'>{{ keyTrans('historic:civilization') }}:</span>",
  68. " <span class='value'>{{ tagTrans('historic:civilization', attribute(tags, 'historic:civilization')) }}</span>",
  69. " </li>",
  70. "{% endif %}",
  71. "",
  72. "{% if attribute(tags, 'memorial:conflict') %}",
  73. " <li class='hasSymbol'>",
  74. " <i class=\"fa fa-bolt\" aria-hidden=\"true\"></i>",
  75. " <span class='key'>{{ keyTrans('memorial:conflict') }}:</span>",
  76. " <span class='value'>{{ tagTransList('memorial:conflict', attribute(tags, 'memorial:conflict')) }}</span>",
  77. " </li>",
  78. "{% endif %}",
  79. "",
  80. "{% if tags.artist_name %}",
  81. " <li class='hasSymbol'>",
  82. " <i class=\"fa fa-palette\" aria-hidden=\"true\"></i>",
  83. " <span class='key'>{{ keyTrans('artist_name') }}:</span>",
  84. " <span class='value'>{{ enumerate(tags.artist_name) }}</span>",
  85. " </li>",
  86. "{% endif %}",
  87. "</ul>"
  88. ],
  89. "markerSign": "{{ const[memgroup].sign|raw }}"
  90. },
  91. "info": [
  92. "<table>",
  93. "{% for value, data in const %}",
  94. "{% if data.zoom <= map.zoom %}",
  95. " <tr>",
  96. " <td>{{ markerCircle({})|raw }}<div class='sign'>{{ data.sign|raw }}</div></td>",
  97. " <td>{{ tagTrans('memorial', value) }}</td>",
  98. " </tr>",
  99. "{% endif %}",
  100. "{% endfor %}",
  101. "{% if 14 <= map.zoom %}",
  102. " <tr>",
  103. " <td>{{ markerCircle({})|raw }}<div class='sign'></div></td>",
  104. " <td>{{ trans('other') }}</td>",
  105. " </tr>",
  106. "{% endif %}",
  107. "</table>"
  108. ],
  109. "const": {
  110. "plaque": {
  111. "alias": [
  112. "plate"
  113. ],
  114. "sign": "<img data-src='img/plaque.svg'>",
  115. "zoom": 14
  116. },
  117. "blue_plaque": {
  118. "sign": "<img data-src='img/blue_plaque.svg'>",
  119. "zoom": 14
  120. },
  121. "statue": {
  122. "sign": "<i class=\"fas fa-female\"></i>",
  123. "zoom": 14
  124. },
  125. "war_memorial": {
  126. "alias": [
  127. "war_monument"
  128. ],
  129. "sign": "<img data-src='maki:horse-riding'>",
  130. "zoom": 14
  131. },
  132. "stolperstein": {
  133. "sign": "",
  134. "zoom": 14
  135. },
  136. "stone": {
  137. "sign": "",
  138. "zoom": 14
  139. },
  140. "bust": {
  141. "alias": [
  142. "person",
  143. "public_person"
  144. ],
  145. "sign": "<i class=\"fas fa-user-alt\"></i>",
  146. "zoom": 14
  147. },
  148. "stele": {
  149. "sign": "",
  150. "zoom": 14
  151. },
  152. "obelisk": {
  153. "sign": "",
  154. "zoom": 14
  155. },
  156. "sculpture": {
  157. "sign": "",
  158. "zoom": 14
  159. },
  160. "ghost_bike": {
  161. "sign": "<i style=\"color: white;\" class=\"fas fa-bicycle\"></i>",
  162. "zoom": 14
  163. },
  164. "vehicle": {
  165. "alias": [
  166. "tank"
  167. ],
  168. "sign": "<i class=\"fas fa-car\"></i>",
  169. "zoom": 14
  170. },
  171. "cross": {
  172. "sign": "<i class=\"fas fa-cross\"></i>",
  173. "zoom": 14
  174. }
  175. },
  176. "filter": {
  177. "type": {
  178. "name": "{{ trans('filter:type') }}",
  179. "show_default": "true",
  180. "type": "select",
  181. "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) }}</option>{% endfor %}"
  182. },
  183. "size": {
  184. "name": "{{ keyTrans('memorial') }} | {{ keyTrans('monument') }}",
  185. "type": "radio",
  186. "values": "<option value='*' query=''>{{ trans('any value') }}</option>\n<option value='memorial' query='nwr[historic=memorial]'>{{ keyTrans('memorial') }}</option>\n<option value='monument' query='nwr[historic=monument]'>{{ keyTrans('monument') }}</option>",
  187. "default": "*"
  188. },
  189. "conflict": {
  190. "key": "memorial:conflict",
  191. "op": "has",
  192. "name": "{{ keyTrans('memorial:conflict') }}",
  193. "type": "select",
  194. "values": [
  195. "WW1",
  196. "WW2"
  197. ],
  198. "valueName": "{{ tagTrans('memorial:conflict', value) }}"
  199. },
  200. "civilization": {
  201. "key": "historic:civilization",
  202. "op": "has",
  203. "name": "{{ keyTrans('historic:civilization') }}",
  204. "type": "select",
  205. "values": [
  206. "ancient_egyptian",
  207. "ancient_greek",
  208. "ancient_roman",
  209. "byzantine",
  210. "celtic",
  211. "etruscan",
  212. "imperial_chinese",
  213. "korean",
  214. "medieval",
  215. "modern",
  216. "neolithic",
  217. "nuragic",
  218. "ottoman",
  219. "prehistoric",
  220. "roman",
  221. "western_roman"
  222. ],
  223. "valueName": "{{ tagTrans('historic:civilization', value) }}"
  224. }
  225. },
  226. "name": {
  227. "ca": "Memorials i Monuments",
  228. "cs": "Památníky a pomníky",
  229. "de": "Denkmäler und Monumente",
  230. "en": "Memorials & Monuments",
  231. "es": "Monumentos y lugares conmemorativos",
  232. "fr": "Mémoriaux et monuments commémoratifs",
  233. "gl": "Memoriais e monumentos",
  234. "hu": "Emlékművek",
  235. "it": "Memoriali e monumenti",
  236. "ja": "記念碑&記念建造物",
  237. "nb": "Minnesmerker og monumenter",
  238. "nl": "Gedenktekens",
  239. "oc": "Monuments e Memoriaus",
  240. "pl": "Miejsca pamięci i pomniki",
  241. "pt": "Memoriais e monumentos",
  242. "pt-br": "Memoriais e monumentos",
  243. "ru": "Памятники и монументы",
  244. "sr": "Споменици",
  245. "tr": "Anıt ve Abideler"
  246. }
  247. }