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.

96 lines
2.8 KiB

4 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|monument)$\"];",
  26. "way[historic~\"^(castle|archaeological_site|battlefield|monument)$\"];",
  27. "relation[historic~\"^(castle|archaeological_site|battlefield|monument)$\"];",
  28. ")"
  29. ],
  30. "14": [
  31. "(",
  32. "node[historic];",
  33. "way[historic];",
  34. "relation[historic];",
  35. ")"
  36. ]
  37. },
  38. "feature": {
  39. "pre": [
  40. "{% set value = tags.historic %}",
  41. "{% if const[tags.historic ~ ' memorial=' ~ tags.memorial] %}",
  42. " {% set value = tags.historic ~ ' memorial=' ~ tags.memorial %}",
  43. "{% endif %}"
  44. ],
  45. "description": "{{ tagTransList('historic', value) }}",
  46. "markerSign": "{{ const[value].sign|raw }}"
  47. },
  48. "info": [
  49. "<table>",
  50. "{% for value, data in const %}",
  51. "{% if data.zoom <= map.zoom %}",
  52. " <tr>",
  53. " <td>{{ markerCircle({})|raw }}<div class='sign'>{{ data.sign|raw }}</div></td>",
  54. " <td>{{ tagTrans('historic', value) }}</td>",
  55. " </tr>",
  56. "{% endif %}",
  57. "{% endfor %}",
  58. "{% if 14 <= map.zoom %}",
  59. " <tr>",
  60. " <td>{{ markerCircle({})|raw }}<div class='sign'></div></td>",
  61. " <td>{{ trans('other') }}</td>",
  62. " </tr>",
  63. "{% endif %}",
  64. "</table>"
  65. ],
  66. "const": {
  67. "archaeological_site": {
  68. "sign": "",
  69. "zoom": 11
  70. },
  71. "battlefield": {
  72. "sign": "",
  73. "zoom": 11
  74. },
  75. "castle": {
  76. "sign": "<img src='maki:castle'>",
  77. "zoom": 11
  78. },
  79. "aircraft": {
  80. "sign": "<img src='maki:airport'>",
  81. "zoom": 14
  82. },
  83. "memorial": {
  84. "sign": "<span style='position: relative; top: -2px;'><img src='maki:monument?size=11'></span>",
  85. "zoom": 14
  86. },
  87. "memorial memorial=plaque": {
  88. "sign": "",
  89. "zoom": 14
  90. },
  91. "monument": {
  92. "sign": "<img src='maki:monument?size=15'>",
  93. "zoom": 11
  94. }
  95. }
  96. }