Show human powered boat (canoe/kayak/standup paddleboard/etc) routes and amenities.
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.

98 lines
3.0 KiB

2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
  1. type: overpass
  2. query:
  3. '12': |-
  4. (
  5. nwr[waterway~"^(dam|weir|waterfall|rapids|lock|lock_gate|sluice_gate)$"];
  6. node["seamark:bridge:clearance_height"];
  7. )
  8. feature:
  9. pre: |-
  10. {% if tags.waterway %}
  11. {% set key = 'waterway' %}
  12. {% set value = tags.waterway %}
  13. {% elseif attribute(tags, 'seamark:bridge:clearance_height') %}
  14. {% set key = 'seamark:bridge:clearance_height' %}
  15. {% set value = Math.trunc(attribute(tags, 'seamark:bridge:clearance_height')) %}
  16. {% if value > 4 %}
  17. {% set value = 4 %}
  18. {% endif %}
  19. {% endif %}
  20. {% set constIndex = (key ~ "=" ~ value) %}
  21. {% set item = const[constIndex] %}
  22. title: |
  23. {{ item['sign'] | raw }} {{ localizedTag(tags, 'name') | default(localizedTag(tags, 'key')) | default(localizedTag(tags, 'ref')) }}
  24. description: |
  25. {% if key == 'seamark:bridge:clearance_height' %}
  26. {{ value }} Meters
  27. {% else %}
  28. {{ tagTrans(key, value) }}
  29. {% endif %}
  30. body: |-
  31. <dl>
  32. <dt>{{ keyTrans('Description') }}</dt>
  33. <dd>{{ localizedTag(tags, 'description') }}</dd>
  34. {% if attribute(tags, 'operator') %}
  35. <dt>{{ keyTrans('Operator') }}</dt>
  36. <dd>{{ attribute(tags, 'operator') ? tagTrans('operator', attribute(tags, 'operator')) : '' }}</dd>
  37. {% endif %}
  38. <dt>{{ trans('Photos') }}</dt>
  39. <dd>
  40. <ul>
  41. {% if attribute(tags, 'mapillary') %}
  42. <li><a href="https://www.mapillary.com/app/?focus=photo&pKey={{ attribute(tags, 'mapillary') }}" rel="noreferrer" target="_blank">Mapillary</a></li>
  43. {% endif %}
  44. </ul>
  45. </dd>
  46. </dl>
  47. markerSign: <i class="fas fa-exclamation-triangle"></i>
  48. markerSymbol: |
  49. {{ markerPointer({ fillColor: '#ff6700' }) }}
  50. listMarkerSymbol: |
  51. {{ markerCircle({ fillColor: '#ff6700' }) }}
  52. priority: |-
  53. {% if const[constIndex] is defined %}
  54. {{ const[constIndex]['priority'] }}
  55. {% else %}
  56. 10
  57. {% endif %}
  58. const:
  59. waterway=dam:
  60. sign: <i class="fas fa-sort-amount-down-alt"></i>
  61. priority: 0
  62. waterway=weir:
  63. sign: <i class="fas fa-sort-amount-up-alt"></i>
  64. priority: 0
  65. waterway=waterfall:
  66. sign: <i class="far fa-chart-bar"></i>
  67. priority: 0
  68. waterway=rapids:
  69. sign: <i class="fas fa-water"></i>
  70. priority: 0
  71. waterway=lock:
  72. sign: <i class="fas fa-lock"></i>
  73. priority: 1
  74. waterway=lock_gate:
  75. sign: <i class="fas fa-torii-gate"></i>
  76. priority: 1
  77. waterway=sluice_gate:
  78. sign: <i class="fas fa-grip-lines"></i>
  79. priority: 0
  80. seamark:bridge:clearance_height=0:
  81. sign: <i class='fa fa-thermometer-0'></i>
  82. priority: 0
  83. seamark:bridge:clearance_height=1:
  84. sign: <i class='fa fa-thermometer-1'></i>
  85. priority: 0
  86. seamark:bridge:clearance_height=2:
  87. sign: <i class='fa fa-thermometer-2'></i>
  88. priority: 0
  89. seamark:bridge:clearance_height=3:
  90. sign: <i class='fa fa-thermometer-3'></i>
  91. priority: 0
  92. seamark:bridge:clearance_height=4:
  93. sign: <i class='fa fa-thermometer-4'></i>
  94. priority: 0