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.

154 lines
5.6 KiB

  1. {
  2. "type": "overpass",
  3. "name": {
  4. "en": "Blue Dot"
  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':'#3388ff'})|raw }}",
  57. "listMarkerSymbol": "{{ markerCircle({'fillColor':'#3388ff'})|raw }}",
  58. "style": {
  59. "width": 3,
  60. "color": "#3388ff",
  61. "radius": 2
  62. }
  63. },
  64. "info": [
  65. "<table>",
  66. "{% for value, data in const %}",
  67. "{% if data.zoom <= map.zoom %}",
  68. " <tr>",
  69. " <td>{{ markerCircle({})|raw }}<div class='sign'>{{ data.sign|raw }}</div></td>",
  70. " <td>{{ tagTrans('historic', value) }}</td>",
  71. " </tr>",
  72. "{% endif %}",
  73. "{% endfor %}",
  74. "{% if 14 <= map.zoom %}",
  75. " <tr>",
  76. " <td>{{ markerCircle({})|raw }}<div class='sign'></div></td>",
  77. " <td>{{ trans('other') }}</td>",
  78. " </tr>",
  79. "{% endif %}",
  80. "</table>"
  81. ],
  82. "const": {
  83. "archaeological_site": {
  84. "sign": "<i class=\"fas fa-archway\"></i>",
  85. "zoom": 11
  86. },
  87. "battlefield": {
  88. "sign": "⚔️",
  89. "zoom": 11
  90. },
  91. "castle": {
  92. "sign": "<img data-src='maki:castle'>",
  93. "zoom": 11
  94. },
  95. "building": {
  96. "sign": "<img data-src='maki:building'>",
  97. "zoom": 14
  98. },
  99. "aircraft": {
  100. "sign": "<img data-src='maki:airport'>",
  101. "zoom": 14
  102. },
  103. "ruins": {
  104. "sign": "<img data-src='temaki:ruins'>",
  105. "zoom": 14
  106. }
  107. },
  108. "filter": {
  109. "type": {
  110. "key": "historic",
  111. "show_default": "true",
  112. "name": "{{ trans('filter:type') }}",
  113. "type": "select",
  114. "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>",
  115. "valueName": "{{ tagTrans('historic', value) }}"
  116. },
  117. "conflict": {
  118. "key": "memorial:conflict",
  119. "op": "has",
  120. "name": "{{ keyTrans('memorial:conflict') }}",
  121. "type": "select",
  122. "values": [
  123. "WW1",
  124. "WW2"
  125. ],
  126. "valueName": "{{ tagTrans('memorial:conflict', value) }}"
  127. },
  128. "civilization": {
  129. "key": "historic:civilization",
  130. "op": "has",
  131. "name": "{{ keyTrans('historic:civilization') }}",
  132. "type": "select",
  133. "values": [
  134. "ancient_egyptian",
  135. "ancient_greek",
  136. "ancient_roman",
  137. "byzantine",
  138. "celtic",
  139. "etruscan",
  140. "imperial_chinese",
  141. "korean",
  142. "medieval",
  143. "modern",
  144. "neolithic",
  145. "nuragic",
  146. "ottoman",
  147. "prehistoric",
  148. "roman",
  149. "western_roman"
  150. ],
  151. "valueName": "{{ tagTrans('historic:civilization', value) }}"
  152. }
  153. }
  154. }