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.

78 lines
2.4 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. "markerSign": "{{ const[tags.historic].sign|raw }}"
  41. },
  42. "info": [
  43. "<table>",
  44. "{% for value, data in const %}",
  45. "{% if data.zoom <= map.zoom %}",
  46. " <tr>",
  47. " <td>{{ markerCircle({})|raw }}<div class='sign'>{{ data.sign|raw }}</div></td>",
  48. " <td>{{ tagTrans('historic', value) }}</td>",
  49. " </tr>",
  50. "{% endif %}",
  51. "{% endfor %}",
  52. "{% if 14 <= map.zoom %}",
  53. " <tr>",
  54. " <td>{{ markerCircle({})|raw }}<div class='sign'></div></td>",
  55. " <td>{{ trans('other') }}</td>",
  56. " </tr>",
  57. "{% endif %}",
  58. "</table>"
  59. ],
  60. "const": {
  61. "archaeological_site": {
  62. "sign": "",
  63. "zoom": 11
  64. },
  65. "battlefield": {
  66. "sign": "",
  67. "zoom": 11
  68. },
  69. "castle": {
  70. "sign": "<img src='maki:castle'>",
  71. "zoom": 11
  72. },
  73. "aircraft": {
  74. "sign": "<img src='maki:airport'>",
  75. "zoom": 14
  76. }
  77. }
  78. }