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
2.1 KiB

  1. type: overpass
  2. name:
  3. en: Paddling Hazards
  4. query:
  5. '12': |-
  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'] | raw }} {{ 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: <i class="fas fa-exclamation-triangle"></i>
  39. markerSymbol: |
  40. {{ markerPointer({ fillColor: '#ff6700' }) }}
  41. listMarkerSymbol: |
  42. {{ markerCircle({ fillColor: '#ff6700' }) }}
  43. priority: |-
  44. {% if const[constIndex] is defined %}
  45. {{ const[constIndex]['priority'] }}
  46. {% else %}
  47. 10
  48. {% endif %}
  49. const:
  50. waterway=dam:
  51. sign: <i class="fas fa-sort-amount-down-alt"></i>
  52. priority: 0
  53. waterway=weir:
  54. sign: <i class="fas fa-sort-amount-up-alt"></i>
  55. priority: 0
  56. waterway=waterfall:
  57. sign: <i class="far fa-chart-bar"></i>
  58. priority: 0
  59. waterway=rapids:
  60. sign: <i class="fas fa-water"></i>
  61. priority: 0
  62. waterway=lock:
  63. sign: <i class="fas fa-lock"></i>
  64. priority: 1
  65. waterway=lock_gate:
  66. sign: <i class="fas fa-torii-gate"></i>
  67. priority: 1
  68. waterway=sluice_gate:
  69. sign: <i class="fas fa-grip-lines"></i>
  70. priority: 0