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.

117 lines
4.2 KiB

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