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.

153 lines
5.6 KiB

  1. {
  2. "type": "overpass",
  3. "name": {
  4. "en": "Current"
  5. },
  6. "query": {
  7. "11": [
  8. "(",
  9. "node[historic~\"^(castle|archaeological_site|battlefield)$\"];",
  10. "way[historic~\"^(castle|archaeological_site|battlefield)$\"];",
  11. "relation[historic~\"^(castle|archaeological_site|battlefield)$\"];",
  12. ")"
  13. ],
  14. "14": [
  15. "(",
  16. "node[historic][historic!~\"^(memorial|monument|wayside_cross|wayside_shrine|wayside_chapel)$\"];",
  17. "way[historic][historic!~\"^(memorial|monument|wayside_cross|wayside_shrine|wayside_chapel)$\"];",
  18. "relation[historic][historic!~\"^(memorial|monument|wayside_cross|wayside_shrine|wayside_chapel)$\"];",
  19. ")"
  20. ]
  21. },
  22. "feature": {
  23. "description": "{{ tagTransList('historic', tags.historic) }}",
  24. "body": [
  25. "<ul>",
  26. "{% if tags.inscription %}",
  27. " <li class='hasSymbol'>",
  28. " <i class=\"fa fa-pencil-alt\" aria-hidden=\"true\"></i>",
  29. " <span class='key'>{{ keyTrans('inscription') }}:</span>",
  30. " <span class='value'>{{ localizedTag(tags, 'inscription') }}</span>",
  31. " </li>",
  32. "{% elseif attribute(tags, 'inscription:url') %}",
  33. " <li class='hasSymbol'>",
  34. " <i class=\"fa fa-pencil-alt\" aria-hidden=\"true\"></i>",
  35. " <span class='key'><a href=\"{{ attribute(tags, 'inscription:url') }}\">{{ keyTrans('inscription') }}</a></span>",
  36. " </li>",
  37. "{% endif %}",
  38. "",
  39. "{% if attribute(tags, 'historic:civilization') %}",
  40. " <li class='hasSymbol'>",
  41. " <i class=\"fa fa-users\" aria-hidden=\"true\"></i>",
  42. " <span class='key'>{{ keyTrans('historic:civilization') }}:</span>",
  43. " <span class='value'>{{ tagTrans('historic:civilization', attribute(tags, 'historic:civilization')) }}</span>",
  44. " </li>",
  45. "{% endif %}",
  46. "",
  47. "{% if attribute(tags, 'memorial:conflict') %}",
  48. " <li class='hasSymbol'>",
  49. " <i class=\"fa fa-bolt\" aria-hidden=\"true\"></i>",
  50. " <span class='key'>{{ keyTrans('memorial:conflict') }}:</span>",
  51. " <span class='value'>{{ tagTransList('memorial:conflict', attribute(tags, 'memorial:conflict')) }}</span>",
  52. " </li>",
  53. "{% endif %}"
  54. ],
  55. "markerSign": "{{ const[tags.historic].sign|raw }}",
  56. "markerSymbol": "{{ markerPointer({'fillColor':'#f2756a'})|raw }}",
  57. "listMarkerSymbol": "{{ markerCircle({'fillColor':'#f2756a'})|raw }}",
  58. "style": {
  59. "width": 3,
  60. "color": "#3388ff"
  61. }
  62. },
  63. "info": [
  64. "<table>",
  65. "{% for value, data in const %}",
  66. "{% if data.zoom <= map.zoom %}",
  67. " <tr>",
  68. " <td>{{ markerCircle({})|raw }}<div class='sign'>{{ data.sign|raw }}</div></td>",
  69. " <td>{{ tagTrans('historic', value) }}</td>",
  70. " </tr>",
  71. "{% endif %}",
  72. "{% endfor %}",
  73. "{% if 14 <= map.zoom %}",
  74. " <tr>",
  75. " <td>{{ markerCircle({})|raw }}<div class='sign'></div></td>",
  76. " <td>{{ trans('other') }}</td>",
  77. " </tr>",
  78. "{% endif %}",
  79. "</table>"
  80. ],
  81. "const": {
  82. "archaeological_site": {
  83. "sign": "<i class=\"fas fa-archway\"></i>",
  84. "zoom": 11
  85. },
  86. "battlefield": {
  87. "sign": "⚔️",
  88. "zoom": 11
  89. },
  90. "castle": {
  91. "sign": "<img data-src='maki:castle'>",
  92. "zoom": 11
  93. },
  94. "building": {
  95. "sign": "<img data-src='maki:building'>",
  96. "zoom": 14
  97. },
  98. "aircraft": {
  99. "sign": "<img data-src='maki:airport'>",
  100. "zoom": 14
  101. },
  102. "ruins": {
  103. "sign": "<img data-src='temaki:ruins'>",
  104. "zoom": 14
  105. }
  106. },
  107. "filter": {
  108. "type": {
  109. "key": "historic",
  110. "show_default": "true",
  111. "name": "{{ trans('filter:type') }}",
  112. "type": "select",
  113. "values": "{% set list = [] %}{% for t, v in const %}<option value=\"{{ t }}\">{% set list = list|merge([ t ]) %}{{ tagTrans('historic', t) }}</option>{% endfor %}<option value='other' query='nwr[historic][historic!~\"^({{ list|join('|') }})$\"]'>{{ trans('other') }}</option>",
  114. "valueName": "{{ tagTrans('historic', value) }}"
  115. },
  116. "conflict": {
  117. "key": "memorial:conflict",
  118. "op": "has",
  119. "name": "{{ keyTrans('memorial:conflict') }}",
  120. "type": "select",
  121. "values": [
  122. "WW1",
  123. "WW2"
  124. ],
  125. "valueName": "{{ tagTrans('memorial:conflict', value) }}"
  126. },
  127. "civilization": {
  128. "key": "historic:civilization",
  129. "op": "has",
  130. "name": "{{ keyTrans('historic:civilization') }}",
  131. "type": "select",
  132. "values": [
  133. "ancient_egyptian",
  134. "ancient_greek",
  135. "ancient_roman",
  136. "byzantine",
  137. "celtic",
  138. "etruscan",
  139. "imperial_chinese",
  140. "korean",
  141. "medieval",
  142. "modern",
  143. "neolithic",
  144. "nuragic",
  145. "ottoman",
  146. "prehistoric",
  147. "roman",
  148. "western_roman"
  149. ],
  150. "valueName": "{{ tagTrans('historic:civilization', value) }}"
  151. }
  152. }
  153. }