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.

113 lines
3.0 KiB

  1. {
  2. "type": "overpass",
  3. "name": {
  4. "ast": "Divisiones Alministratives",
  5. "cs": "Administrativní oblasti",
  6. "de": "Administrative Gebiete",
  7. "el": "Διοικητικά Όρια",
  8. "en": "Administrative Areas",
  9. "et": "Administratiivalad",
  10. "fr": "Zones administratives",
  11. "hu": "Közigazgatási határok",
  12. "it": "Suddivisioni amministrative",
  13. "nl": "Administratieve gebieden",
  14. "pt": "Regiões administrativas",
  15. "pt-br": "Divisão político-administrativa",
  16. "ro": "Zona administrativa",
  17. "ru": "Административные границы"
  18. },
  19. "query": {
  20. "3": [
  21. "(",
  22. "way[admin_level=2];",
  23. "relation[admin_level=2];",
  24. ")"
  25. ],
  26. "6": [
  27. "(",
  28. "way[admin_level~\"^(2|3)$\"];",
  29. "relation[admin_level~\"^(2|3)$\"];",
  30. ")"
  31. ],
  32. "9": [
  33. "(",
  34. "way[admin_level~\"^(2|3|4|5)$\"];",
  35. "relation[admin_level~\"^(2|3|4|5)$\"];",
  36. ")"
  37. ],
  38. "11": [
  39. "(",
  40. "way[admin_level~\"^(2|3|4|5|6|7)$\"];",
  41. "relation[admin_level~\"^(2|3|4|5|6|7)$\"];",
  42. ")"
  43. ],
  44. "13": [
  45. "(",
  46. "way[admin_level~\"^(2|3|4|5|6|7|8|9)$\"];",
  47. "relation[admin_level~\"^(2|3|4|5|6|7|8|9)$\"];",
  48. ")"
  49. ],
  50. "15": [
  51. "(",
  52. "way[admin_level~\"^(2|3|4|5|6|7|8|9|10|11)$\"];",
  53. "relation[admin_level~\"^(2|3|4|5|6|7|8|9|10|11)$\"];",
  54. ")"
  55. ]
  56. },
  57. "members": true,
  58. "feature": {
  59. "description": "{{ tagTrans('admin_level', tags.admin_level) }}",
  60. "body": "{{ keyTrans('admin_level') }}: {{ tags.admin_level }}",
  61. "styles": "",
  62. "markerSymbol": ""
  63. },
  64. "memberFeature": {
  65. "pre": [
  66. "{% set level = 99 %}",
  67. "{% for master in masters %}",
  68. " {% if master.tags.admin_level < level %}",
  69. " {% set level = master.tags.admin_level %}",
  70. " {% endif %}",
  71. "{% endfor %}",
  72. "{% set style = const[level] %}"
  73. ],
  74. "style": {
  75. "width": "{{ style.width }}",
  76. "dashArray": "{{ style.dashArray }}",
  77. "color": "#7f007f"
  78. },
  79. "style:hover": {
  80. "pane": "hover",
  81. "width": "4",
  82. "color": "black"
  83. },
  84. "markerSymbol": "",
  85. "listExclude": "true"
  86. },
  87. "const": {
  88. "2": {
  89. "width": "6",
  90. "dashArray": ""
  91. },
  92. "4": {
  93. "width": "4",
  94. "dashArray": "10,5"
  95. },
  96. "6": {
  97. "width": "3",
  98. "dashArray": "5,5"
  99. },
  100. "8": {
  101. "width": "2",
  102. "dashArray": "5,5"
  103. },
  104. "9": {
  105. "width": "1.5",
  106. "dashArray": "5,5"
  107. },
  108. "10": {
  109. "width": "1.5",
  110. "dashArray": "2,5"
  111. }
  112. }
  113. }