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.

239 lines
5.6 KiB

  1. type: overpass
  2. name:
  3. ca: Cossos d'aigua
  4. cs: Vodní plochy
  5. de: Gewässer
  6. en: Waterbodies
  7. es: Cuerpos de agua
  8. fr: Hydrographie
  9. gl: Hidrografía
  10. hu: Vizek
  11. it: Masse d'acqua
  12. ja: 水系
  13. nb: Vannflater
  14. nl: Oppervlaktewater
  15. oc: Aigas e rius
  16. pl: Wodne
  17. pt: Massas de água
  18. pt-br: Hidrografia
  19. ru: Водоемы
  20. sr: Водене површине
  21. tr: Su kütleleri
  22. query:
  23. 10: |-
  24. (
  25. way[waterway~"^(river|canal)$"];
  26. nwr[natural~"^(divide|bay|strait)$"];
  27. way[natural=water][water~"^(lake|lagoon|reservoir|canal)$"];
  28. relation[natural=water][type=multipolygon][water~"^(lake|lagoon|reservoir|canal)$"];
  29. )
  30. 13: |-
  31. (
  32. nwr[natural~"^(water|divide|bay|strait|spring|hot_spring|geyser)$"];
  33. relation[type=multipolygon][natural=water];
  34. relation[type=multipolygon][waterway=riverbank];
  35. nwr[waterway];
  36. )
  37. feature:
  38. pre: |-
  39. {% if tags.waterway %}
  40. {% set key = 'waterway' %}
  41. {% set value = tags.waterway %}
  42. {% elseif tags.water %}
  43. {% set key = 'water' %}
  44. {% set value = tags.water %}
  45. {% elseif tags.natural %}
  46. {% set key = 'natural' %}
  47. {% set value = tags.natural %}
  48. {% endif %}
  49. {% set kv = key ~ '=' ~ value %}
  50. {% set data = const[kv]|default(const['natural=water']) %}
  51. description: |-
  52. {{ tagTrans(key, value) }}
  53. body: |-
  54. <ul>
  55. {% if tags.intermittent %}
  56. <li class='hasSymbol'>
  57. <i class="far fa-circle"></i>
  58. <span class='key'>{{ keyTrans('intermittent') }}:</span>
  59. <span class='value'>{{ tagTrans('intermittent', tags.intermittent) }}</span>
  60. {% endif %}
  61. </ul>
  62. markerSign: |-
  63. {{ const[kv].sign|raw }}
  64. markerSymbol: |-
  65. {% if data.symbol == 'pointer' %}
  66. {{ markerPointer({ fillColor: '#3388ff' })|raw }}
  67. {% endif %}
  68. listMarkerSymbol: |-
  69. {% if data.symbol == 'pointer' %}
  70. {{ markerCircle({ fillColor: '#3388ff' })|raw }}
  71. {% elseif data.symbol == 'polygon' %}
  72. polygon
  73. {% else %}
  74. line
  75. {% endif %}
  76. priority: '{{ data.priority }}'
  77. style:
  78. width: '{{ data.style.width }}'
  79. color: '{{ data.style.color }}'
  80. text: |-
  81. {% if data.text %}
  82. {{ tags.name }} ➔
  83. {% endif %}
  84. textRepeat: '1'
  85. dashArray: |-
  86. {% if tags.intermittent == "yes" %}5,5{% endif %}
  87. lineCap: |-
  88. {% if tags.intermittent == "yes" %}butt{% else %}round{% endif %}
  89. const:
  90. natural=water:
  91. zoom: 10
  92. symbol: polygon
  93. style:
  94. width: 3
  95. color: '#3388ff'
  96. priority: 2
  97. water=lake:
  98. zoom: 10
  99. symbol: polygon
  100. style:
  101. width: 3
  102. color: '#3388ff'
  103. hideInfo: true
  104. priority: 0
  105. water=lagoon:
  106. zoom: 10
  107. symbol: polygon
  108. style:
  109. width: 3
  110. color: '#3388ff'
  111. hideInfo: true
  112. priority: 0
  113. water=reservoir:
  114. zoom: 10
  115. symbol: polygon
  116. style:
  117. width: 3
  118. color: '#3388ff'
  119. hideInfo: true
  120. priority: 0
  121. waterway=river:
  122. zoom: 10
  123. symbol: line
  124. style:
  125. width: 4
  126. color: '#3388ff'
  127. text: true
  128. priority: 1
  129. waterway=canal:
  130. alias:
  131. - water=canal
  132. zoom: 10
  133. symbol: line
  134. style:
  135. width: 4
  136. color: '#3388ff'
  137. text: true
  138. priority: 1
  139. waterway=stream:
  140. zoom: 13
  141. symbol: line
  142. style:
  143. width: 2
  144. color: '#3388ff'
  145. text: true
  146. priority: 3
  147. waterway=drain:
  148. zoom: 13
  149. symbol: line
  150. style:
  151. width: 2
  152. color: '#3388ff'
  153. text: true
  154. priority: 3
  155. waterway=ditch:
  156. zoom: 13
  157. symbol: line
  158. style:
  159. width: 1
  160. color: '#3388ff'
  161. text: true
  162. priority: 5
  163. natural=spring:
  164. sign: <i class='fas fa-water'></i>
  165. zoom: 13
  166. symbol: pointer
  167. natural=hot_spring:
  168. sign: '<i style="color: orange;" class="fas fa-water"></i>'
  169. zoom: 13
  170. symbol: pointer
  171. natural=geyser:
  172. sign: '<i style="color: red;" class="fas fa-water"></i>'
  173. zoom: 13
  174. symbol: pointer
  175. waterway=waterfall:
  176. sign: <img data-src='maki:waterfall'>
  177. zoom: 13
  178. symbol: pointer
  179. waterway=dam:
  180. zoom: 13
  181. symbol: line
  182. style:
  183. width: 3
  184. color: '#000000'
  185. priority: 3
  186. waterway=weir:
  187. zoom: 13
  188. symbol: line
  189. style:
  190. width: 3
  191. color: '#000000'
  192. priority: 3
  193. natural=divide:
  194. zoom: 10
  195. symbol: line
  196. style:
  197. width: 3
  198. color: '#ff0000'
  199. text: true
  200. priority: 0
  201. filter:
  202. type:
  203. name: |-
  204. {{ trans("filter:type") }}
  205. key: natural
  206. type: select
  207. show_default: 'true'
  208. values: |-
  209. {% for k, data in const %}<option value="{{ k }}" query="(nwr[{{ k }}];{% for a in data.alias %}nwr[{{ a }}];{% endfor %})">{{ tagTrans(k) }}</option>{% endfor %}
  210. sort: natsort
  211. intermittent:
  212. name: |-
  213. {{ keyTrans("intermittent") }}
  214. key: intermittent
  215. type: radio
  216. values: <option value='yes' query="nwr[intermittent][intermittent!=no]">{{ tagTrans('intermittent', 'yes') }}</option><option value='no' query="(nwr[!intermittent];nwr[intermittent=no];)">{{ tagTrans('intermittent', 'no') }}</option>
  217. info: |-
  218. <table>
  219. {% for k, data in const %}
  220. {% if not data.hideInfo and data.zoom <= map.zoom %}
  221. <tr>
  222. <td>
  223. {% if data.symbol == 'pointer' %}
  224. {{ markerCircle({ fillColor: '#3388ff' })|raw }}<div class='sign'>{{ data.sign|raw }}</div>
  225. {% elseif data.symbol == 'polygon' %}
  226. {{ markerPolygon(data.style)|raw }}
  227. {% elseif data.symbol == 'line' %}
  228. {{ markerLine(data.style)|raw }}
  229. {% endif %}
  230. </td>
  231. <td>{{ tagTrans(k) }}</td>
  232. </tr>
  233. {% endif %}
  234. {% endfor %}
  235. <tr>
  236. <td>{{ markerLine({ width: 3, color: '#3388ff', dashArray: '5,5', lineCap: 'butt' })|raw }}</td>
  237. <td>{{ keyTrans('intermittent') }}</td>
  238. </tr>
  239. </table>