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.

117 lines
4.2 KiB

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. }