Main categories of OpenStreetBrowser with public transport zoom level
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.

163 lines
5.9 KiB

6 years ago
6 years ago
6 years ago
7 years ago
  1. {
  2. "type": "overpass",
  3. "name": {
  4. "ast": "Hestoria",
  5. "cs": "Historické",
  6. "de": "Geschichte",
  7. "el": "Ιστορικά",
  8. "en": "Historic",
  9. "et": "Ajalooline",
  10. "fr": "Histoire",
  11. "hu": "Történelmi objektumok",
  12. "it": "Storia",
  13. "ja": "記念",
  14. "nl": "Historisch",
  15. "pl": "Miejsca Historyczne",
  16. "pt": "Histórico",
  17. "pt-br": "Histórico",
  18. "ro": "Istoric",
  19. "ru": "Историческое",
  20. "uk": "Історія"
  21. },
  22. "query": {
  23. "11": [
  24. "(",
  25. "node[historic~\"^(castle|archaeological_site|battlefield)$\"];",
  26. "way[historic~\"^(castle|archaeological_site|battlefield)$\"];",
  27. "relation[historic~\"^(castle|archaeological_site|battlefield)$\"];",
  28. ")"
  29. ],
  30. "14": [
  31. "(",
  32. "node[historic][historic!~\"^(memorial|monument|wayside_cross|wayside_shrine|wayside_chapel)$\"];",
  33. "way[historic][historic!~\"^(memorial|monument|wayside_cross|wayside_shrine|wayside_chapel)$\"];",
  34. "relation[historic][historic!~\"^(memorial|monument|wayside_cross|wayside_shrine|wayside_chapel)$\"];",
  35. ")"
  36. ]
  37. },
  38. "feature": {
  39. "description": "{{ tagTransList('historic', tags.historic) }}",
  40. "body": [
  41. "<ul>",
  42. "{% if tags.inscription %}",
  43. " <li class='hasSymbol'>",
  44. " <i class=\"fa fa-pencil-alt\" aria-hidden=\"true\"></i>",
  45. " <span class='key'>{{ keyTrans('inscription') }}:</span>",
  46. " <span class='value'>{{ localizedTag(tags, 'inscription') }}</span>",
  47. " </li>",
  48. "{% elseif attribute(tags, 'inscription:url') %}",
  49. " <li class='hasSymbol'>",
  50. " <i class=\"fa fa-pencil-alt\" aria-hidden=\"true\"></i>",
  51. " <span class='key'><a href=\"{{ attribute(tags, 'inscription:url') }}\">{{ keyTrans('inscription') }}</a></span>",
  52. " </li>",
  53. "{% endif %}",
  54. "",
  55. "{% if attribute(tags, 'historic:civilization') %}",
  56. " <li class='hasSymbol'>",
  57. " <i class=\"fa fa-users\" aria-hidden=\"true\"></i>",
  58. " <span class='key'>{{ keyTrans('historic:civilization') }}:</span>",
  59. " <span class='value'>{{ tagTrans('historic:civilization', attribute(tags, 'historic:civilization')) }}</span>",
  60. " </li>",
  61. "{% endif %}",
  62. "",
  63. "{% if attribute(tags, 'memorial:conflict') %}",
  64. " <li class='hasSymbol'>",
  65. " <i class=\"fa fa-bolt\" aria-hidden=\"true\"></i>",
  66. " <span class='key'>{{ keyTrans('memorial:conflict') }}:</span>",
  67. " <span class='value'>{{ tagTransList('memorial:conflict', attribute(tags, 'memorial:conflict')) }}</span>",
  68. " </li>",
  69. "{% endif %}"
  70. ],
  71. "markerSign": "{{ const[tags.historic].sign|raw }}"
  72. },
  73. "info": [
  74. "<table>",
  75. "{% for value, data in const %}",
  76. "{% if data.zoom <= map.zoom %}",
  77. " <tr>",
  78. " <td>{{ markerCircle({})|raw }}<div class='sign'>{{ data.sign|raw }}</div></td>",
  79. " <td>{{ tagTrans('historic', value) }}</td>",
  80. " </tr>",
  81. "{% endif %}",
  82. "{% endfor %}",
  83. "{% if 14 <= map.zoom %}",
  84. " <tr>",
  85. " <td>{{ markerCircle({})|raw }}<div class='sign'></div></td>",
  86. " <td>{{ trans('other') }}</td>",
  87. " </tr>",
  88. "{% endif %}",
  89. "</table>"
  90. ],
  91. "const": {
  92. "archaeological_site": {
  93. "sign": "<i class=\"fas fa-archway\"></i>",
  94. "zoom": 11
  95. },
  96. "battlefield": {
  97. "sign": "⚔️",
  98. "zoom": 11
  99. },
  100. "castle": {
  101. "sign": "<img data-src='maki:castle'>",
  102. "zoom": 11
  103. },
  104. "building": {
  105. "sign": "<img data-src='maki:building'>",
  106. "zoom": 14
  107. },
  108. "aircraft": {
  109. "sign": "<img data-src='maki:airport'>",
  110. "zoom": 14
  111. },
  112. "ruins": {
  113. "sign": "<img data-src='temaki:ruins'>",
  114. "zoom": 14
  115. }
  116. },
  117. "filter": {
  118. "type": {
  119. "key": "historic",
  120. "show_default": "true",
  121. "name": "{{ trans('filter:type') }}",
  122. "type": "select",
  123. "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>",
  124. "valueName": "{{ tagTrans('historic', value) }}"
  125. },
  126. "conflict": {
  127. "key": "memorial:conflict",
  128. "op": "has",
  129. "name": "{{ keyTrans('memorial:conflict') }}",
  130. "type": "select",
  131. "values": [
  132. "WW1",
  133. "WW2"
  134. ],
  135. "valueName": "{{ tagTrans('memorial:conflict', value) }}"
  136. },
  137. "civilization": {
  138. "key": "historic:civilization",
  139. "op": "has",
  140. "name": "{{ keyTrans('historic:civilization') }}",
  141. "type": "select",
  142. "values": [
  143. "ancient_egyptian",
  144. "ancient_greek",
  145. "ancient_roman",
  146. "byzantine",
  147. "celtic",
  148. "etruscan",
  149. "imperial_chinese",
  150. "korean",
  151. "medieval",
  152. "modern",
  153. "neolithic",
  154. "nuragic",
  155. "ottoman",
  156. "prehistoric",
  157. "roman",
  158. "western_roman"
  159. ],
  160. "valueName": "{{ tagTrans('historic:civilization', value) }}"
  161. }
  162. }
  163. }