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.

118 lines
4.3 KiB

  1. {
  2. "type": "overpass",
  3. "name": {
  4. "de": "Gebäudearten",
  5. "en": "Building types"
  6. },
  7. "query": {
  8. "16": [
  9. "(",
  10. " way[building][building!=no];",
  11. " relation[building][building!=no];",
  12. ")"
  13. ]
  14. },
  15. "feature": {
  16. "pre": [
  17. "{% set type = tags.building|split(';')[0] %}",
  18. "{% set color = const.other.color %}",
  19. "{% for cat, data in const %}",
  20. " {% if type in data.types %}",
  21. " {% set color = data.color %}",
  22. " {% endif %}",
  23. "{% endfor %}"
  24. ],
  25. "description": [
  26. "{% if tags.building == 'yes' %}",
  27. "{{ keyTrans('building') }}",
  28. "{% else %}",
  29. "{{ tagTransList('building', tags.building) }}",
  30. "{% endif %}"
  31. ],
  32. "priority": [
  33. "{% set p = 100 %}",
  34. "{% if tags.name %}{% set p = p - 10 %}{% endif %}",
  35. "{% if tags.amenity %}{% set p = p - 1 %}{% endif %}",
  36. "{% if tags.historic %}{% set p = p - 1 %}{% endif %}",
  37. "{% if tags.culture %}{% set p = p - 1 %}{% endif %}",
  38. "{% if tags.highway %}{% set p = p - 1 %}{% endif %}",
  39. "{% if tags.railway %}{% set p = p - 1 %}{% endif %}",
  40. "{% if tags.aeroway %}{% set p = p - 1 %}{% endif %}",
  41. "{% if tags.amenity %}{% set p = p - 1 %}{% endif %}",
  42. "{% if tags.tourism %}{% set p = p - 1 %}{% endif %}",
  43. "{{ p }}"
  44. ],
  45. "markerSymbol": null,
  46. "listMarkerSymbol": "{{ markerPolygon({\"fillColor\": color, \"fillOpacity\": 0.8, \"width\": 1, \"color\": \"#000000\" })|raw }}",
  47. "style": {
  48. "width": "1",
  49. "color": "#000000",
  50. "fillColor": "{{ color }}",
  51. "fillOpacity": "0.8"
  52. }
  53. },
  54. "info": [
  55. "<table>",
  56. "{% for cat, data in const %}",
  57. " <tr>",
  58. " <td>{{ markerPolygon({ \"fillColor\": data.color, \"fillOpacity\": \"0.8\", \"width\": 1, \"color\": \"#000000\" })|raw }}</td>",
  59. " <td>{{ cat }}</td>",
  60. " </tr>",
  61. "{% endfor %}",
  62. "</table>"
  63. ],
  64. "const": {
  65. "residential": {
  66. "color": "#25a000",
  67. "types": [ "house", "apartments", "block", "flats", "farm", "detached", "dormitory", "terrace", "houseboat", "bungalow", "static_caravan", "cabin", "residential", "semidetached_house", "ger", "trullo" ]
  68. },
  69. "tourism": {
  70. "color": "#814ce2",
  71. "types": [ "hotel", "ruins", "conservatory" ]
  72. },
  73. "commercial": {
  74. "color": "#ec5bcf",
  75. "types": [ "commercial", "office", "industrial", "retail", "supermarket", "warehouse", "kiosk", "mall", "shop" ]
  76. },
  77. "religious": {
  78. "color": "#af29cc",
  79. "types": [ "religious", "cathedral", "chapel", "church", "mosque", "temple", "synagogue", "shrine", "monastery" ]
  80. },
  81. "amenity": {
  82. "color": "#2935cc",
  83. "types": [ "kindergarten", "civic", "government", "hospital", "school", "university", "grandstand", "public", "toilets", "college" ]
  84. },
  85. "farm": {
  86. "color": "#92e934",
  87. "types": [ "bakehouse", "barn", "cowshed", "farm_auxiliary", "greenhouse", "stable", "sty", "kitchen", "slurry_tank", "silo" ]
  88. },
  89. "industrial": {
  90. "color": "#e2da1b",
  91. "types": [ "construction", "garbage_shed", "transformer_tower", "service", "water_tower", "industrial", "warehouse", "storage_tank" ]
  92. },
  93. "transport": {
  94. "color": "#1bb5e2",
  95. "types": [ "carport", "garage", "garages", "bridge", "hangar", "parking", "train_station", "transportation" ]
  96. },
  97. "sport": {
  98. "color": "#e21b66",
  99. "types": [ "pavilion", "riding_hall", "stadium", "sports_hall" ]
  100. },
  101. "simple": {
  102. "color": "#cc8725",
  103. "types": [ "hut", "roof", "shed" ]
  104. },
  105. "military": {
  106. "color": "#4a7300",
  107. "types": [ "bunker", "riding_hall", "sports_hall" ]
  108. },
  109. "other": {
  110. "color": "#ff0000",
  111. "types": []
  112. },
  113. "unspecified": {
  114. "color": "#7f7f7f",
  115. "types": [ "yes" ]
  116. }
  117. }
  118. }