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.

67 lines
2.1 KiB

7 years ago
  1. {
  2. "type": "overpass",
  3. "name": {
  4. "en": "Waterbodies",
  5. "de": "Gewässer"
  6. },
  7. "query": {
  8. "12": [
  9. "(",
  10. "node[natural~\"^(water|divide)$\"];",
  11. "way[natural~\"^(water|divide)$\"];",
  12. "relation[type=multipolygon][natural=water];",
  13. "way[waterway];",
  14. ")"
  15. ]
  16. },
  17. "feature": {
  18. "markerSign": null,
  19. "style": {
  20. "weight": [
  21. "{% if tags.waterway == 'stream' %}",
  22. "1.5",
  23. "{% else %}",
  24. "3",
  25. "{% endif %}"
  26. ],
  27. "color": [
  28. "{% if tags.natural == 'divide' %}",
  29. "#ff0000",
  30. "{% elseif tags.waterway in [ 'dam', 'weir' ] %}",
  31. "#000000",
  32. "{% else %}",
  33. "#3388ff",
  34. "{% endif %}"
  35. ],
  36. "text": [
  37. "{% if type=='way' and tags.waterway in [ 'river', 'stream', 'canal', 'wadi', 'drystream' ] %}",
  38. "{{ tags.name }} ➔ ",
  39. "{% endif %}"
  40. ]
  41. }
  42. },
  43. "info": [
  44. "<table>",
  45. " <tr>",
  46. " <td>{{ markerPolygon(evaluate({ \"natural\": \"water\" }))|raw }}</td>",
  47. " <td>{{ tagTrans('natural', 'water') }}</td>",
  48. " </tr>",
  49. " <tr>",
  50. " <td>{{ markerLine(evaluate({ \"waterway\": \"river\" }))|raw }}</td>",
  51. " <td>{{ tagTrans('waterway', 'river') }}</td>",
  52. " </tr>",
  53. " <tr>",
  54. " <td>{{ markerLine(evaluate({ \"waterway\": \"stream\" }))|raw }}</td>",
  55. " <td>{{ tagTrans('waterway', 'stream') }}</td>",
  56. " </tr>",
  57. " <tr>",
  58. " <td>{{ markerLine(evaluate({ \"waterway\": \"dam\" }))|raw }}</td>",
  59. " <td>{{ tagTrans('waterway', 'dam') }}, {{ tagTrans('waterway', 'weir') }}</td>",
  60. " </tr>",
  61. " <tr>",
  62. " <td>{{ markerLine(evaluate({ \"natural\": \"divide\" }))|raw }}</td>",
  63. " <td>{{ tagTrans('natural', 'divide') }}</td>",
  64. " </tr>",
  65. "</table>"
  66. ]
  67. }