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.

203 lines
8.0 KiB

6 years ago
6 years ago
6 years ago
7 years ago
  1. {
  2. "type": "overpass",
  3. "name": {
  4. "ast": "Hestoria",
  5. "ca": "Històric",
  6. "cs": "Historické",
  7. "de": "Geschichte",
  8. "el": "Ιστορικά",
  9. "en": "Historic",
  10. "es": "Histórico",
  11. "et": "Ajalooline",
  12. "fr": "Histoire",
  13. "gl": "Histórico",
  14. "hu": "Történelmi objektumok",
  15. "it": "Storia",
  16. "ja": "歴史",
  17. "nb": "Historisk",
  18. "nl": "Historisch",
  19. "oc": "Istòria",
  20. "pl": "Miejsca historyczne",
  21. "pt": "Histórico",
  22. "pt-br": "Histórico",
  23. "ro": "Istoric",
  24. "ru": "Историческое",
  25. "sr": "Историјско",
  26. "tr": "Tarihi",
  27. "uk": "Історія"
  28. },
  29. "query": {
  30. "11": [
  31. "(",
  32. "node[historic~\"^(castle|archaeological_site|battlefield)$\"];",
  33. "way[historic~\"^(castle|archaeological_site|battlefield)$\"];",
  34. "relation[historic~\"^(castle|archaeological_site|battlefield)$\"];",
  35. ")"
  36. ],
  37. "14": [
  38. "(",
  39. "node[historic][historic!~\"^(memorial|monument|wayside_cross|wayside_shrine|wayside_chapel)$\"];",
  40. "way[historic][historic!~\"^(memorial|monument|wayside_cross|wayside_shrine|wayside_chapel)$\"];",
  41. "relation[historic][historic!~\"^(memorial|monument|wayside_cross|wayside_shrine|wayside_chapel)$\"];",
  42. "node[memorial~\"^(flood_mark|high_water_mark)$\"];",
  43. "node[\"memorial:type\"~\"^(flood_mark|high_water_mark)$\"];",
  44. "node[flood_mark];",
  45. ")"
  46. ]
  47. },
  48. "feature": {
  49. "description": [
  50. "{% set historic = tags.historic %}",
  51. "{% if attribute(tags, 'memorial') == 'high_water_mark' or attribute(tags, 'memorial:type') == 'high_water_mark' or attribute(tags, 'memorial') == 'flood_mark' or attribute(tags, 'memorial:type') == 'flood_mark' or tags.historic == 'highwater_mark' or (tags.historic != 'flood_mark' and tags.flood_mark) %}",
  52. "{{ tagTrans('historic', 'flood_mark') }}",
  53. "{{ debug(id ~ ': Deprecated tagging. Please use historic=flood_mark.') }}",
  54. "{% set historic = 'flood_mark' %}",
  55. "{% else %}",
  56. "{{ tagTransList('historic', tags.historic) }}",
  57. "{% endif %}",
  58. "",
  59. "{% if tags.flood_mark and tags.flood_mark != 'yes' %}({{ tagTrans('flood_mark', tags.flood_mark) }}){% endif %}"
  60. ],
  61. "body": [
  62. "<ul>",
  63. "{% if tags.inscription %}",
  64. " <li class='hasSymbol'>",
  65. " <i class=\"fa fa-pencil-alt\" aria-hidden=\"true\"></i>",
  66. " <span class='key'>{{ keyTrans('inscription') }}:</span>",
  67. " <span class='value'>{{ localizedTag(tags, 'inscription')|nl2br }}</span>",
  68. " </li>",
  69. "{% elseif attribute(tags, 'inscription:url') %}",
  70. " <li class='hasSymbol'>",
  71. " <i class=\"fa fa-pencil-alt\" aria-hidden=\"true\"></i>",
  72. " <span class='key'><a href=\"{{ attribute(tags, 'inscription:url') }}\">{{ keyTrans('inscription') }}</a></span>",
  73. " </li>",
  74. "{% endif %}",
  75. "",
  76. "{% if attribute(tags, 'historic:civilization') %}",
  77. " <li class='hasSymbol'>",
  78. " <i class=\"fa fa-users\" aria-hidden=\"true\"></i>",
  79. " <span class='key'>{{ keyTrans('historic:civilization') }}:</span>",
  80. " <span class='value'>{{ tagTrans('historic:civilization', attribute(tags, 'historic:civilization')) }}</span>",
  81. " </li>",
  82. "{% endif %}",
  83. "",
  84. "{% if attribute(tags, 'memorial:conflict') %}",
  85. " <li class='hasSymbol'>",
  86. " <i class=\"fa fa-bolt\" aria-hidden=\"true\"></i>",
  87. " <span class='key'>{{ keyTrans('memorial:conflict') }}:</span>",
  88. " <span class='value'>{{ tagTransList('memorial:conflict', attribute(tags, 'memorial:conflict')) }}</span>",
  89. " </li>",
  90. "{% endif %}",
  91. "",
  92. "{% if tags.flood_date %}",
  93. " <li class='hasSymbol'>",
  94. " <i class=\"fas fa-calendar-alt\"></i>",
  95. " <span class='key'>{{ keyTrans('flood_date') }}:</span>",
  96. " <span class='value'>",
  97. " {% set flood_dates = [] %}",
  98. " {% for d in tags.flood_date|split(';') %}",
  99. " {% set flood_dates = flood_dates|merge([ d|trim|osmFormatDate ]) %}",
  100. " {% endfor %}",
  101. " {{ flood_dates|enumerate }}",
  102. " </span>",
  103. " </li>",
  104. "{% endif %}"
  105. ],
  106. "markerSign": "{{ const[historic].sign|raw }}"
  107. },
  108. "info": [
  109. "<table>",
  110. "{% for value, data in const %}",
  111. "{% if data.zoom <= map.zoom %}",
  112. " <tr>",
  113. " <td>{{ markerCircle({})|raw }}<div class='sign'>{{ data.sign|raw }}</div></td>",
  114. " <td>{{ tagTrans('historic', value) }}</td>",
  115. " </tr>",
  116. "{% endif %}",
  117. "{% endfor %}",
  118. "{% if 14 <= map.zoom %}",
  119. " <tr>",
  120. " <td>{{ markerCircle({})|raw }}<div class='sign'></div></td>",
  121. " <td>{{ trans('other') }}</td>",
  122. " </tr>",
  123. "{% endif %}",
  124. "</table>"
  125. ],
  126. "const": {
  127. "archaeological_site": {
  128. "sign": "<i class=\"fas fa-archway\"></i>",
  129. "zoom": 11
  130. },
  131. "battlefield": {
  132. "sign": "⚔️",
  133. "zoom": 11
  134. },
  135. "castle": {
  136. "sign": "<img data-src='maki:castle'>",
  137. "zoom": 11
  138. },
  139. "building": {
  140. "sign": "<img data-src='maki:building'>",
  141. "zoom": 14
  142. },
  143. "aircraft": {
  144. "sign": "<img data-src='maki:airport'>",
  145. "zoom": 14
  146. },
  147. "ruins": {
  148. "sign": "<img data-src='temaki:ruins'>",
  149. "zoom": 14
  150. },
  151. "flood_mark": {
  152. "sign": "<i class=\"fas fa-water\"></i>",
  153. "zoom": 14,
  154. "query": "(node[historic][memorial~\"^(flood_mark|high_water_mark)$\"];node[historic][\"memorial:type\"~\"^(flood_mark|high_water_mark)$\"];node[historic~\"^(highwater_mark|flood_mark)$\"];)"
  155. }
  156. },
  157. "filter": {
  158. "type": {
  159. "key": "historic",
  160. "show_default": "true",
  161. "name": "{{ trans('filter:type') }}",
  162. "type": "select",
  163. "values": "{% set list = [] %}{% for t, v in const %}<option value=\"{{ t }}\" {% if const[t].query %}query='{{ const[t].query }}'{% endif %}>{% set list = list|merge([ t ]) %}{{ tagTrans('historic', t) }}</option>{% endfor %}<option value='other' query='nwr[historic][historic!~\"^({{ list|join('|') }})$\"]'>{{ trans('other') }}</option>",
  164. "valueName": "{{ tagTrans('historic', value) }}"
  165. },
  166. "conflict": {
  167. "key": "memorial:conflict",
  168. "op": "has",
  169. "name": "{{ keyTrans('memorial:conflict') }}",
  170. "type": "select",
  171. "values": [
  172. "WW1",
  173. "WW2"
  174. ],
  175. "valueName": "{{ tagTrans('memorial:conflict', value) }}"
  176. },
  177. "civilization": {
  178. "key": "historic:civilization",
  179. "op": "has",
  180. "name": "{{ keyTrans('historic:civilization') }}",
  181. "type": "select",
  182. "values": [
  183. "ancient_egyptian",
  184. "ancient_greek",
  185. "ancient_roman",
  186. "byzantine",
  187. "celtic",
  188. "etruscan",
  189. "imperial_chinese",
  190. "korean",
  191. "medieval",
  192. "modern",
  193. "neolithic",
  194. "nuragic",
  195. "ottoman",
  196. "prehistoric",
  197. "roman",
  198. "western_roman"
  199. ],
  200. "valueName": "{{ tagTrans('historic:civilization', value) }}"
  201. }
  202. }
  203. }