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.

118 lines
4.0 KiB

7 years ago
7 years ago
7 years ago
7 years ago
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. "priority": [
  45. "{% if tags.natural == 'divide' %}",
  46. "0",
  47. "{% elseif tags.natural == 'water' and tags.water in ['lake', 'lagoon', 'reservoir', 'canal'] %}",
  48. "0",
  49. "{% elseif tags.waterway == 'river' %}",
  50. "1",
  51. "{% elseif tags.waterway == 'stream' %}",
  52. "3",
  53. "{% elseif tags.waterway == 'ditch' %}",
  54. "5",
  55. "{% else %}",
  56. "2",
  57. "{% endif %}"
  58. ],
  59. "style": {
  60. "weight": [
  61. "{% if tags.waterway == 'river' %}",
  62. "4",
  63. "{% elseif tags.waterway == 'stream' %}",
  64. "2",
  65. "{% elseif tags.waterway == 'ditch' %}",
  66. "1",
  67. "{% else %}",
  68. "3",
  69. "{% endif %}"
  70. ],
  71. "color": [
  72. "{% if tags.natural == 'divide' %}",
  73. "#ff0000",
  74. "{% elseif tags.waterway in [ 'dam', 'weir' ] %}",
  75. "#000000",
  76. "{% else %}",
  77. "#3388ff",
  78. "{% endif %}"
  79. ],
  80. "text": [
  81. "{% if type=='way' and tags.waterway in [ 'river', 'stream', 'canal', 'wadi', 'drystream' ] %}",
  82. "{{ tags.name }} ➔ ",
  83. "{% endif %}"
  84. ]
  85. }
  86. },
  87. "info": [
  88. "<table>",
  89. " <tr>",
  90. " <td>{{ markerPolygon(evaluate({ \"natural\": \"water\" }))|raw }}</td>",
  91. " <td>{{ tagTrans('natural', 'water') }}</td>",
  92. " </tr>",
  93. " <tr>",
  94. " <td>{{ markerLine(evaluate({ \"waterway\": \"river\" }))|raw }}</td>",
  95. " <td>{{ tagTrans('waterway', 'river') }},",
  96. " {{ tagTrans('waterway', 'canal') }}</td>",
  97. " </tr>",
  98. "{% if map.zoom >= 13 %}",
  99. " <tr>",
  100. " <td>{{ markerLine(evaluate({ \"waterway\": \"stream\" }))|raw }}</td>",
  101. " <td>{{ tagTrans('waterway', 'stream') }}</td>",
  102. " </tr>",
  103. " <tr>",
  104. " <td>{{ markerLine(evaluate({ \"waterway\": \"ditch\" }))|raw }}</td>",
  105. " <td>{{ tagTrans('waterway', 'ditch') }}</td>",
  106. " </tr>",
  107. " <tr>",
  108. " <td>{{ markerLine(evaluate({ \"waterway\": \"dam\" }))|raw }}</td>",
  109. " <td>{{ tagTrans('waterway', 'dam') }}, {{ tagTrans('waterway', 'weir') }}</td>",
  110. " </tr>",
  111. "{% endif %}",
  112. " <tr>",
  113. " <td>{{ markerLine(evaluate({ \"natural\": \"divide\" }))|raw }}</td>",
  114. " <td>{{ tagTrans('natural', 'divide') }}</td>",
  115. " </tr>",
  116. "</table>"
  117. ]
  118. }