Main categories of OpenStreetBrowser with support for whitewater
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.

224 lines
8.0 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') }}</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) }}{% for alias in data.alias %}, {{ tagTrans('memorial', alias) }}{% endfor %}</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": [ "plate" ],
  112. "sign": "<img data-src='img/plaque.svg'>",
  113. "zoom": 14
  114. },
  115. "blue_plaque": {
  116. "sign": "<img data-src='img/blue_plaque.svg'>",
  117. "zoom": 14
  118. },
  119. "statue": {
  120. "sign": "<i class=\"fas fa-female\"></i>",
  121. "zoom": 14
  122. },
  123. "war_memorial": {
  124. "alias": [ "war_monument" ],
  125. "sign": "<img data-src='maki:horse-riding'>",
  126. "zoom": 14
  127. },
  128. "stolperstein": {
  129. "sign": "",
  130. "zoom": 14
  131. },
  132. "stone": {
  133. "sign": "",
  134. "zoom": 14
  135. },
  136. "bust": {
  137. "alias": [ "person" ],
  138. "sign": "<i class=\"fas fa-user-alt\"></i>",
  139. "zoom": 14
  140. },
  141. "stele": {
  142. "alias": [ "obelisk" ],
  143. "sign": "",
  144. "zoom": 14
  145. },
  146. "sculpture": {
  147. "sign": "",
  148. "zoom": 14
  149. },
  150. "ghost_bike": {
  151. "sign": "<i style=\"color: white;\" class=\"fas fa-bicycle\"></i>",
  152. "zoom": 14
  153. },
  154. "vehicle": {
  155. "alias": [ "tank" ],
  156. "sign": "<i class=\"fas fa-car\"></i>",
  157. "zoom": 14
  158. },
  159. "cross": {
  160. "sign": "<i class=\"fas fa-cross\"></i>",
  161. "zoom": 14
  162. },
  163. "flood_mark": {
  164. "alias": [ "high_water_mark" ],
  165. "sign": "<i class=\"fas fa-water\"></i>",
  166. "zoom": 14
  167. },
  168. "grave": {
  169. "alias": [ "graveyard" ],
  170. "sign": "",
  171. "zoom": 14
  172. }
  173. },
  174. "filter": {
  175. "type": {
  176. "name": "{{ trans('filter:type') }}",
  177. "show_default": "true",
  178. "type": "select",
  179. "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 %}"
  180. },
  181. "size": {
  182. "name": "{{ keyTrans('memorial') }} | {{ keyTrans('monument') }}",
  183. "type": "radio",
  184. "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>",
  185. "default": "*"
  186. },
  187. "conflict": {
  188. "key": "memorial:conflict",
  189. "op": "has",
  190. "name": "{{ keyTrans('memorial:conflict') }}",
  191. "type": "select",
  192. "values": [
  193. "WW1",
  194. "WW2"
  195. ],
  196. "valueName": "{{ tagTrans('memorial:conflict', value) }}"
  197. },
  198. "civilization": {
  199. "key": "historic:civilization",
  200. "op": "has",
  201. "name": "{{ keyTrans('historic:civilization') }}",
  202. "type": "select",
  203. "values": [
  204. "ancient_egyptian",
  205. "ancient_greek",
  206. "ancient_roman",
  207. "byzantine",
  208. "celtic",
  209. "etruscan",
  210. "imperial_chinese",
  211. "korean",
  212. "medieval",
  213. "modern",
  214. "neolithic",
  215. "nuragic",
  216. "ottoman",
  217. "prehistoric",
  218. "roman",
  219. "western_roman"
  220. ],
  221. "valueName": "{{ tagTrans('historic:civilization', value) }}"
  222. }
  223. }
  224. }