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.

96 lines
3.2 KiB

7 years ago
  1. {
  2. "type": "overpass",
  3. "name": {
  4. "en": "Waterbodies",
  5. "de": "Gewässer"
  6. },
  7. "query": {
  8. "10": [
  9. "(",
  10. "way[waterway~\"^(river|canal)$\"];",
  11. "way[natural~\"^(divide)$\"];",
  12. "way[natural=water][water~\"^(lake|lagoon|reservoir|canal)$\"];",
  13. "relation[natural=water][type=multipolygon][water~\"^(lake|lagoon|reservoir|canal)$\"];",
  14. ")"
  15. ],
  16. "13": [
  17. "(",
  18. "node[natural~\"^(water|divide)$\"];",
  19. "way[natural~\"^(water|divide)$\"];",
  20. "relation[type=multipolygon][natural=water];",
  21. "relation[type=multipolygon][waterway=riverbank];",
  22. "way[waterway];",
  23. ")"
  24. ]
  25. },
  26. "feature": {
  27. "description": [
  28. "{% if tags.waterway %}",
  29. "{{ tagTrans('waterway', tags.waterway) }}",
  30. "{% elseif tags.water %}",
  31. "{{ tagTrans('water', tags.water) }}",
  32. "{% elseif tags.natural %}",
  33. "{{ tagTrans('natural', tags.natural) }}",
  34. "{% endif %}"
  35. ],
  36. "markerSign": null,
  37. "listMarkerSymbol": [
  38. "{% if tags.natural == 'water' %}",
  39. "polygon",
  40. "{% else %}",
  41. "line",
  42. "{% endif %}"
  43. ],
  44. "style": {
  45. "weight": [
  46. "{% if tags.waterway == 'river' %}",
  47. "4",
  48. "{% elseif tags.waterway == 'stream' %}",
  49. "2",
  50. "{% elseif tags.waterway == 'ditch' %}",
  51. "1",
  52. "{% else %}",
  53. "3",
  54. "{% endif %}"
  55. ],
  56. "color": [
  57. "{% if tags.natural == 'divide' %}",
  58. "#ff0000",
  59. "{% elseif tags.waterway in [ 'dam', 'weir' ] %}",
  60. "#000000",
  61. "{% else %}",
  62. "#3388ff",
  63. "{% endif %}"
  64. ],
  65. "text": [
  66. "{% if type=='way' and tags.waterway in [ 'river', 'stream', 'canal', 'wadi', 'drystream' ] %}",
  67. "{{ tags.name }} ➔ ",
  68. "{% endif %}"
  69. ]
  70. }
  71. },
  72. "info": [
  73. "<table>",
  74. " <tr>",
  75. " <td>{{ markerPolygon(evaluate({ \"natural\": \"water\" }))|raw }}</td>",
  76. " <td>{{ tagTrans('natural', 'water') }}</td>",
  77. " </tr>",
  78. " <tr>",
  79. " <td>{{ markerLine(evaluate({ \"waterway\": \"river\" }))|raw }}</td>",
  80. " <td>{{ tagTrans('waterway', 'river') }}</td>",
  81. " </tr>",
  82. " <tr>",
  83. " <td>{{ markerLine(evaluate({ \"waterway\": \"stream\" }))|raw }}</td>",
  84. " <td>{{ tagTrans('waterway', 'stream') }}</td>",
  85. " </tr>",
  86. " <tr>",
  87. " <td>{{ markerLine(evaluate({ \"waterway\": \"dam\" }))|raw }}</td>",
  88. " <td>{{ tagTrans('waterway', 'dam') }}, {{ tagTrans('waterway', 'weir') }}</td>",
  89. " </tr>",
  90. " <tr>",
  91. " <td>{{ markerLine(evaluate({ \"natural\": \"divide\" }))|raw }}</td>",
  92. " <td>{{ tagTrans('natural', 'divide') }}</td>",
  93. " </tr>",
  94. "</table>"
  95. ]
  96. }