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.

123 lines
4.2 KiB

7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
  1. {
  2. "type": "overpass",
  3. "name": {
  4. "de": "Gewässer",
  5. "en": "Waterbodies",
  6. "fr": "Hydrographie",
  7. "hu": "Vizek",
  8. "pt": "Massas de água",
  9. "pt-br": "Hidrografia"
  10. },
  11. "query": {
  12. "10": [
  13. "(",
  14. "way[waterway~\"^(river|canal)$\"];",
  15. "way[natural~\"^(divide)$\"];",
  16. "way[natural=water][water~\"^(lake|lagoon|reservoir|canal)$\"];",
  17. "relation[natural=water][type=multipolygon][water~\"^(lake|lagoon|reservoir|canal)$\"];",
  18. ")"
  19. ],
  20. "13": [
  21. "(",
  22. "node[natural~\"^(water|divide)$\"];",
  23. "way[natural~\"^(water|divide)$\"];",
  24. "relation[type=multipolygon][natural=water];",
  25. "relation[type=multipolygon][waterway=riverbank];",
  26. "way[waterway];",
  27. ")"
  28. ]
  29. },
  30. "feature": {
  31. "description": [
  32. "{% if tags.waterway %}",
  33. "{{ tagTrans('waterway', tags.waterway) }}",
  34. "{% elseif tags.water %}",
  35. "{{ tagTrans('water', tags.water) }}",
  36. "{% elseif tags.natural %}",
  37. "{{ tagTrans('natural', tags.natural) }}",
  38. "{% endif %}"
  39. ],
  40. "markerSymbol": null,
  41. "listMarkerSymbol": [
  42. "{% if tags.natural == 'water' %}",
  43. "polygon",
  44. "{% else %}",
  45. "line",
  46. "{% endif %}"
  47. ],
  48. "priority": [
  49. "{% if tags.natural == 'divide' %}",
  50. "0",
  51. "{% elseif tags.natural == 'water' and tags.water in ['lake', 'lagoon', 'reservoir', 'canal'] %}",
  52. "0",
  53. "{% elseif tags.waterway == 'river' %}",
  54. "1",
  55. "{% elseif tags.waterway == 'stream' or tags.waterway == 'drain' %}",
  56. "3",
  57. "{% elseif tags.waterway == 'ditch' %}",
  58. "5",
  59. "{% else %}",
  60. "2",
  61. "{% endif %}"
  62. ],
  63. "style": {
  64. "width": [
  65. "{% if tags.waterway == 'river' %}",
  66. "4",
  67. "{% elseif tags.waterway == 'stream' or tags.waterway == 'drain' %}",
  68. "2",
  69. "{% elseif tags.waterway == 'ditch' %}",
  70. "1",
  71. "{% else %}",
  72. "3",
  73. "{% endif %}"
  74. ],
  75. "color": [
  76. "{% if tags.natural == 'divide' %}",
  77. "#ff0000",
  78. "{% elseif tags.waterway in [ 'dam', 'weir' ] %}",
  79. "#000000",
  80. "{% else %}",
  81. "#3388ff",
  82. "{% endif %}"
  83. ],
  84. "text": [
  85. "{% if type=='way' and tags.waterway in [ 'river', 'stream', 'canal', 'ditch', 'wadi', 'drystream', 'drain' ] %}",
  86. "{{ tags.name }} ➔ ",
  87. "{% endif %}"
  88. ],
  89. "textRepeat": "1"
  90. }
  91. },
  92. "info": [
  93. "<table>",
  94. " <tr>",
  95. " <td>{{ markerPolygon(evaluate({ \"natural\": \"water\" }))|raw }}</td>",
  96. " <td>{{ tagTrans('natural', 'water') }}</td>",
  97. " </tr>",
  98. " <tr>",
  99. " <td>{{ markerLine(evaluate({ \"waterway\": \"river\" }))|raw }}</td>",
  100. " <td>{{ tagTrans('waterway', 'river') }},",
  101. " {{ tagTrans('waterway', 'canal') }}</td>",
  102. " </tr>",
  103. "{% if map.zoom >= 13 %}",
  104. " <tr>",
  105. " <td>{{ markerLine(evaluate({ \"waterway\": \"stream\" }))|raw }}</td>",
  106. " <td>{{ tagTrans('waterway', 'stream') }}, {{ tagTrans('waterway', 'drain') }}</td>",
  107. " </tr>",
  108. " <tr>",
  109. " <td>{{ markerLine(evaluate({ \"waterway\": \"ditch\" }))|raw }}</td>",
  110. " <td>{{ tagTrans('waterway', 'ditch') }}</td>",
  111. " </tr>",
  112. " <tr>",
  113. " <td>{{ markerLine(evaluate({ \"waterway\": \"dam\" }))|raw }}</td>",
  114. " <td>{{ tagTrans('waterway', 'dam') }}, {{ tagTrans('waterway', 'weir') }}</td>",
  115. " </tr>",
  116. "{% endif %}",
  117. " <tr>",
  118. " <td>{{ markerLine(evaluate({ \"natural\": \"divide\" }))|raw }}</td>",
  119. " <td>{{ tagTrans('natural', 'divide') }}</td>",
  120. " </tr>",
  121. "</table>"
  122. ]
  123. }