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.

241 lines
7.0 KiB

  1. {
  2. "type": "overpass",
  3. "name": {
  4. "de": "Gebäudearten",
  5. "en": "Building types",
  6. "fr": "Type",
  7. "pt-br": "Tipologias"
  8. },
  9. "query": {
  10. "16": [
  11. "(",
  12. " way[building][building!=no];",
  13. " relation[building][building!=no];",
  14. ")"
  15. ]
  16. },
  17. "feature": {
  18. "pre": [
  19. "{% set type = tags.building|split(';')[0] %}",
  20. "{% set color = const.other.color %}",
  21. "{% for cat, data in const %}",
  22. " {% if type in data.types %}",
  23. " {% set color = data.color %}",
  24. " {% endif %}",
  25. "{% endfor %}"
  26. ],
  27. "description": [
  28. "{% if tags.building == 'yes' %}",
  29. "{{ keyTrans('building') }}",
  30. "{% else %}",
  31. "{{ tagTransList('building', tags.building) }}",
  32. "{% endif %}",
  33. "{% if tags.building == 'construction' and tags.construction %}",
  34. "({{ tagTransList('building', tags.construction) }})",
  35. "{% endif %}"
  36. ],
  37. "markerSymbol": "",
  38. "listMarkerSymbol": "{{ markerPolygon({\"fillColor\": color, \"fillOpacity\": 0.8, \"width\": 1, \"color\": \"#000000\" })|raw }}",
  39. "priority": [
  40. "{% set p = 100 %}",
  41. "{% if tags.name %}{% set p = p - 10 %}{% endif %}",
  42. "{% if tags.amenity %}{% set p = p - 1 %}{% endif %}",
  43. "{% if tags.historic %}{% set p = p - 1 %}{% endif %}",
  44. "{% if tags.culture %}{% set p = p - 1 %}{% endif %}",
  45. "{% if tags.highway %}{% set p = p - 1 %}{% endif %}",
  46. "{% if tags.railway %}{% set p = p - 1 %}{% endif %}",
  47. "{% if tags.aeroway %}{% set p = p - 1 %}{% endif %}",
  48. "{% if tags.amenity %}{% set p = p - 1 %}{% endif %}",
  49. "{% if tags.tourism %}{% set p = p - 1 %}{% endif %}",
  50. "{{ p }}"
  51. ],
  52. "style": {
  53. "width": "1",
  54. "color": "#000000",
  55. "fillColor": "{{ color }}",
  56. "fillOpacity": "0.8"
  57. }
  58. },
  59. "info": [
  60. "<table>",
  61. "{% for cat, data in const %}",
  62. " <tr>",
  63. " <td valign='top'>{{ markerPolygon({ \"fillColor\": data.color, \"fillOpacity\": \"0.8\", \"width\": 1, \"color\": \"#000000\" })|raw }}</td>",
  64. " <td onclick='this.classList.toggle(\"infoShowDetails\")'><b>{{ trans(data.name) }}</b><span class='details'>:",
  65. " {% for i, type in data.types %}<span title='building={{ type }}'>{% if i > 0 %}, {% endif %}{{ tagTrans('building', type) }}</span>{% endfor %}",
  66. " </span>",
  67. "<span class='summary'><i class=\"fa fa-info-circle\" aria-hidden=\"true\"></i></span>",
  68. " </td>",
  69. " </tr>",
  70. "{% endfor %}",
  71. "</table>"
  72. ],
  73. "const": {
  74. "residential": {
  75. "name": "tag:building=residential",
  76. "color": "#25a000",
  77. "types": [
  78. "house",
  79. "apartments",
  80. "block",
  81. "flats",
  82. "farm",
  83. "detached",
  84. "dormitory",
  85. "terrace",
  86. "houseboat",
  87. "bungalow",
  88. "static_caravan",
  89. "residential",
  90. "semidetached_house",
  91. "ger",
  92. "trullo"
  93. ]
  94. },
  95. "tourism": {
  96. "name": "tag:tourism",
  97. "color": "#814ce2",
  98. "types": [
  99. "hotel",
  100. "ruins",
  101. "conservatory"
  102. ]
  103. },
  104. "commercial": {
  105. "name": "tag:building=commercial",
  106. "color": "#ec5bcf",
  107. "types": [
  108. "commercial",
  109. "office",
  110. "industrial",
  111. "retail",
  112. "supermarket",
  113. "warehouse",
  114. "kiosk",
  115. "mall",
  116. "shop"
  117. ]
  118. },
  119. "religious": {
  120. "name": "tag:building=religious",
  121. "color": "#af29cc",
  122. "types": [
  123. "religious",
  124. "cathedral",
  125. "chapel",
  126. "church",
  127. "mosque",
  128. "temple",
  129. "synagogue",
  130. "shrine",
  131. "monastery"
  132. ]
  133. },
  134. "amenity": {
  135. "name": "tag:amenity",
  136. "color": "#2935cc",
  137. "types": [
  138. "kindergarten",
  139. "civic",
  140. "government",
  141. "hospital",
  142. "school",
  143. "university",
  144. "grandstand",
  145. "public",
  146. "toilets",
  147. "college"
  148. ]
  149. },
  150. "agriculture": {
  151. "name": "tag:landuse=agriculture",
  152. "color": "#92e934",
  153. "types": [
  154. "bakehouse",
  155. "barn",
  156. "cowshed",
  157. "farm_auxiliary",
  158. "greenhouse",
  159. "stable",
  160. "sty",
  161. "kitchen",
  162. "slurry_tank",
  163. "silo"
  164. ]
  165. },
  166. "industrial": {
  167. "name": "tag:landuse=industrial",
  168. "color": "#e2da1b",
  169. "types": [
  170. "construction",
  171. "garbage_shed",
  172. "transformer_tower",
  173. "service",
  174. "water_tower",
  175. "industrial",
  176. "warehouse",
  177. "storage_tank"
  178. ]
  179. },
  180. "transportation": {
  181. "name": "tag:building=transportation",
  182. "color": "#1bb5e2",
  183. "types": [
  184. "carport",
  185. "garage",
  186. "garages",
  187. "bridge",
  188. "hangar",
  189. "parking",
  190. "train_station",
  191. "transportation"
  192. ]
  193. },
  194. "sport": {
  195. "name": "tag:sport",
  196. "color": "#e21b66",
  197. "types": [
  198. "pavilion",
  199. "riding_hall",
  200. "stadium",
  201. "sports_hall"
  202. ]
  203. },
  204. "roof": {
  205. "name": "tag:building=roof",
  206. "color": "#afafaf7f",
  207. "types": [
  208. "roof"
  209. ]
  210. },
  211. "shelter": {
  212. "name": "tag:amenity=shelter",
  213. "color": "#cc8725",
  214. "types": [
  215. "cabin",
  216. "hut",
  217. "shed"
  218. ]
  219. },
  220. "military": {
  221. "name": "tag:military",
  222. "color": "#4a7300",
  223. "types": [
  224. "bunker"
  225. ]
  226. },
  227. "unspecified": {
  228. "name": "tag:building=generic",
  229. "color": "#7f7f7f",
  230. "types": [
  231. "yes",
  232. "generic"
  233. ]
  234. },
  235. "other": {
  236. "name": "other",
  237. "color": "#ff0000",
  238. "types": []
  239. }
  240. }
  241. }