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.

74 lines
2.3 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. "listMarkerSymbol": [
  20. "{% if tags.natural == 'water' %}",
  21. "polygon",
  22. "{% else %}",
  23. "line",
  24. "{% endif %}"
  25. ],
  26. "style": {
  27. "weight": [
  28. "{% if tags.waterway == 'stream' %}",
  29. "1.5",
  30. "{% else %}",
  31. "3",
  32. "{% endif %}"
  33. ],
  34. "color": [
  35. "{% if tags.natural == 'divide' %}",
  36. "#ff0000",
  37. "{% elseif tags.waterway in [ 'dam', 'weir' ] %}",
  38. "#000000",
  39. "{% else %}",
  40. "#3388ff",
  41. "{% endif %}"
  42. ],
  43. "text": [
  44. "{% if type=='way' and tags.waterway in [ 'river', 'stream', 'canal', 'wadi', 'drystream' ] %}",
  45. "{{ tags.name }} ➔ ",
  46. "{% endif %}"
  47. ]
  48. }
  49. },
  50. "info": [
  51. "<table>",
  52. " <tr>",
  53. " <td>{{ markerPolygon(evaluate({ \"natural\": \"water\" }))|raw }}</td>",
  54. " <td>{{ tagTrans('natural', 'water') }}</td>",
  55. " </tr>",
  56. " <tr>",
  57. " <td>{{ markerLine(evaluate({ \"waterway\": \"river\" }))|raw }}</td>",
  58. " <td>{{ tagTrans('waterway', 'river') }}</td>",
  59. " </tr>",
  60. " <tr>",
  61. " <td>{{ markerLine(evaluate({ \"waterway\": \"stream\" }))|raw }}</td>",
  62. " <td>{{ tagTrans('waterway', 'stream') }}</td>",
  63. " </tr>",
  64. " <tr>",
  65. " <td>{{ markerLine(evaluate({ \"waterway\": \"dam\" }))|raw }}</td>",
  66. " <td>{{ tagTrans('waterway', 'dam') }}, {{ tagTrans('waterway', 'weir') }}</td>",
  67. " </tr>",
  68. " <tr>",
  69. " <td>{{ markerLine(evaluate({ \"natural\": \"divide\" }))|raw }}</td>",
  70. " <td>{{ tagTrans('natural', 'divide') }}</td>",
  71. " </tr>",
  72. "</table>"
  73. ]
  74. }