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.

43 lines
1.1 KiB

  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. }