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.

114 lines
2.6 KiB

  1. type: overpass
  2. name:
  3. ast: Divisiones Alministratives
  4. ca: Àrees Administratives
  5. cs: Administrativní oblasti
  6. de: Administrative Gebiete
  7. el: Διοικητικά Όρια
  8. en: Administrative Areas
  9. es: Áreas Administrativas
  10. et: Administratiivalad
  11. fr: Zones administratives
  12. gl: Divisións administrativas
  13. hu: Közigazgatási határok
  14. it: Suddivisioni amministrative
  15. ja: 行政界
  16. nb: Administrative områder
  17. nl: Administratieve gebieden
  18. oc: Divisions administrativas
  19. pl: Obszary administracyjne
  20. pt: Regiões administrativas
  21. pt-br: Divisão político-administrativa
  22. ro: Zona administrativă
  23. ru: Административные границы
  24. sr: Административне зоне
  25. tr: İdari Alanlar
  26. query:
  27. 3: |-
  28. (
  29. way[admin_level=2];
  30. relation[admin_level=2];
  31. )
  32. 6: |-
  33. (
  34. way[admin_level~"^(2|3)$"];
  35. relation[admin_level~"^(2|3)$"];
  36. )
  37. 9: |-
  38. (
  39. way[admin_level~"^(2|3|4|5)$"];
  40. relation[admin_level~"^(2|3|4|5)$"];
  41. )
  42. 11: |-
  43. (
  44. way[admin_level~"^(2|3|4|5|6|7)$"];
  45. relation[admin_level~"^(2|3|4|5|6|7)$"];
  46. )
  47. 13: |-
  48. (
  49. way[admin_level~"^(2|3|4|5|6|7|8|9)$"];
  50. relation[admin_level~"^(2|3|4|5|6|7|8|9)$"];
  51. )
  52. 15: |-
  53. (
  54. way[admin_level~"^(2|3|4|5|6|7|8|9|10|11)$"];
  55. relation[admin_level~"^(2|3|4|5|6|7|8|9|10|11)$"];
  56. )
  57. feature:
  58. pre: |-
  59. {% set width = map.zoom < const[tags.admin_level].minZoom + 1.5 ? 1.5 : 3 %}
  60. {% set color = colorInterpolate(['red', 'blue'], (tags.admin_level - 2) / 10) %}
  61. priority: |-
  62. {{ tags.admin_level }}
  63. styles: |-
  64. {{ type == 'way' ? 'default' : '' }}
  65. style:
  66. fill: true
  67. fillOpacity: 0
  68. width: |-
  69. {{ width }}
  70. color: |-
  71. {{ color }}
  72. markerSymbol: ''
  73. listMarkerSymbol: |
  74. {{ markerLine({ width: width, color: color }) }}
  75. description: |-
  76. {{ tagTrans("admin_level", tags.admin_level) }}
  77. body: |-
  78. {{ keyTrans("admin_level") }}: {{ tags.admin_level }}
  79. listExclude: |-
  80. {{ type == 'way' }}
  81. info: |-
  82. <table>
  83. {% for admin_level, data in const %}
  84. {% if data.minZoom <= map.zoom %}
  85. {% set width = map.zoom < const[admin_level].minZoom + 1.5 ? 1.5 : 3 %}
  86. {% set color = colorInterpolate(['red', 'blue'], (admin_level - 2) / 10) %}
  87. <tr>
  88. <td>{{ markerLine({ 'width': width, color: color })|raw }}</td>
  89. <td>{{ tagTrans('admin_level', admin_level) }} ({{ admin_level }})</td>
  90. </tr>
  91. {% endif %}
  92. {% endfor %}
  93. </table>
  94. const:
  95. 2:
  96. minZoom: 3
  97. 3:
  98. minZoom: 6
  99. 4:
  100. minZoom: 9
  101. 5:
  102. minZoom: 9
  103. 6:
  104. minZoom: 11
  105. 7:
  106. minZoom: 11
  107. 8:
  108. minZoom: 13
  109. 9:
  110. minZoom: 13
  111. 10:
  112. minZoom: 15
  113. 11:
  114. minZoom: 15