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.

75 lines
1.7 KiB

  1. type: overpass
  2. name:
  3. en: Paddling Hazards
  4. query:
  5. '13': |-
  6. (
  7. nwr[waterway~"^(dam|weir|waterfall|rapids|lock|lock_gate|sluice_gate)$"];
  8. )
  9. feature:
  10. pre: |-
  11. {% if tags.waterway %}
  12. {% set key = 'waterway' %}
  13. {% set value = tags.waterway %}
  14. {% endif %}
  15. {% set constIndex = (key ~ "=" ~ value) %}
  16. {% set item = const[constIndex] %}
  17. title: |
  18. {{ item['sign'] }} {{ localizedTag(tags, 'name') | default(localizedTag(tags, 'key')) | default(localizedTag(tags, 'ref')) }}
  19. description: |
  20. {{ tagTrans(key, value) }}
  21. body: |-
  22. <dl>
  23. <dt>{{ keyTrans('Description') }}</dt>
  24. <dd>{{ localizedTag(tags, 'description') }}</dd>
  25. {% if attribute(tags, 'operator') %}
  26. <dt>{{ keyTrans('Operator') }}</dt>
  27. <dd>{{ attribute(tags, 'operator') ? tagTrans('operator', attribute(tags, 'operator')) : '' }}</dd>
  28. {% endif %}
  29. <dt>{{ trans('Photos') }}</dt>
  30. <dd>
  31. <ul>
  32. {% if attribute(tags, 'mapillary') %}
  33. <li><a href="https://www.mapillary.com/app/?focus=photo&pKey={{ attribute(tags, 'mapillary') }}" rel="noreferrer" target="_blank">Mapillary</a></li>
  34. {% endif %}
  35. </ul>
  36. </dd>
  37. </dl>
  38. markerSign: '⚠️'
  39. priority: |-
  40. {% if const[constIndex] is defined %}
  41. {{ const[constIndex]['priority'] }}
  42. {% else %}
  43. 10
  44. {% endif %}
  45. const:
  46. waterway=dam:
  47. sign: '🦫'
  48. priority: 0
  49. waterway=weir:
  50. sign: '🦫'
  51. priority: 0
  52. waterway=waterfall:
  53. sign: '🌊'
  54. priority: 0
  55. waterway=rapids:
  56. sign: '🌊'
  57. priority: 0
  58. waterway=lock:
  59. sign: '🚪'
  60. priority: 1
  61. waterway=lock_gate:
  62. sign: '🚪'
  63. priority: 1
  64. waterway=sluice_gate:
  65. sign: '🦫'
  66. priority: 0