Main categories of OpenStreetBrowser with support for whitewater
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.

240 lines
7.0 KiB

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