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.

133 lines
4.3 KiB

  1. name:
  2. ca: Riscos de Rem
  3. en: Paddling Hazards
  4. fr: Risques en pagayage
  5. it: Pericoli per la navigazione a remo
  6. pl: Zagrożenia związane z wiosłowaniem
  7. pt-br: Riscos
  8. tr: Kürek Tehlikeleri
  9. type: overpass
  10. query:
  11. '12': |-
  12. (
  13. nwr[waterway~"^(dam|weir|waterfall|rapids|lock|lock_gate|sluice_gate)$"];
  14. nwr["seamark:restricted_area:restriction"~"no_entry|restricted_entry"];
  15. node["seamark:bridge:clearance_height"];
  16. )
  17. feature:
  18. pre: |-
  19. {% if tags.waterway %}
  20. {% set key = 'waterway' %}
  21. {% set value = tags.waterway %}
  22. {% elseif attribute(tags, 'seamark:restricted_area:restriction') %}
  23. {% set key = 'seamark:restricted_area:restriction' %}
  24. {% set value = '' %}
  25. {% elseif attribute(tags, 'seamark:bridge:clearance_height') %}
  26. {% set key = 'seamark:bridge:clearance_height' %}
  27. {% set value = attribute(tags, 'seamark:bridge:clearance_height') | round %}
  28. {% if value > 4 %}
  29. {% set value = 4 %}
  30. {% endif %}
  31. {% endif %}
  32. {% set constIndex = (key ~ "=" ~ value) %}
  33. {% set item = const[constIndex] %}
  34. title: |
  35. {{ item['sign'] | raw }} {{ localizedTag(tags, 'name') | default(localizedTag(tags, 'key')) | default(localizedTag(tags, 'ref')) }}
  36. description: |
  37. {% if key == 'seamark:restricted_area:restriction' %}
  38. {{ attribute(tags, 'seamark:restricted_area:restriction') }}
  39. {% elseif key == 'seamark:bridge:clearance_height' %}
  40. {{ attribute(tags, 'seamark:bridge:clearance_height') }} Meters
  41. {% else %}
  42. {{ tagTrans(key, value) }}
  43. {% endif %}
  44. body: |-
  45. <ul>
  46. {% if attribute(tags, 'operator') %}
  47. <li class='hasSymbol'>
  48. <i class='fa fa-drivers-license-o'></i>
  49. {{ keyTrans('Operator') }}:
  50. <span class='value'>{{ attribute(tags, 'operator') ? tagTrans('operator', attribute(tags, 'operator')) : '' }}</span>
  51. </li>
  52. {% endif %}
  53. {% if attribute(tags, 'height') %}
  54. <li class='hasSymbol'>
  55. <i class='fa-solid fa-ruler-vertical'></i>
  56. {{ keyTrans('Height') }}:
  57. <span class='value'>{{ attribute(tags, 'height') ? tagTrans('height', attribute(tags, 'height')) : '' }}</span>
  58. </li>
  59. {% endif %}
  60. {% if attribute(tags, 'width') %}
  61. <li class='hasSymbol'>
  62. <i class='fas fa-ruler-horizontal'></i>
  63. {{ keyTrans('Width') }}:
  64. <span class='value'>{{ attribute(tags, 'width') ? tagTrans('width', attribute(tags, 'width')) : '' }}</span>
  65. </li>
  66. {% endif %}
  67. {% if attribute(tags, 'mapillary') %}
  68. <li class='hasSymbol'>
  69. <i class='fa fa-camera'></i>
  70. {{ trans('Photos') }}:
  71. <span class='value'>
  72. <a href="https://www.mapillary.com/app/?focus=photo&pKey={{ attribute(tags, 'mapillary') }}" rel="noreferrer" target="_blank">Mapillary</a>
  73. </span>
  74. </li>
  75. {% endif %}
  76. </ul>
  77. markerSign: <i class="fas fa-exclamation-triangle"></i>
  78. markerSymbol: |
  79. {{ markerPointer({ fillColor: '#ff6700' }) }}
  80. listMarkerSymbol: |
  81. {{ markerCircle({ fillColor: '#ff6700' }) }}
  82. priority: |-
  83. {% if const[constIndex] is defined %}
  84. {{ const[constIndex]['priority'] }}
  85. {% else %}
  86. 10
  87. {% endif %}
  88. const:
  89. waterway=dam:
  90. sign: <i class="fas fa-sort-amount-down-alt"></i>
  91. priority: 0
  92. waterway=weir:
  93. sign: <i class="fas fa-sort-amount-up-alt"></i>
  94. priority: 0
  95. waterway=waterfall:
  96. sign: <i class="far fa-chart-bar"></i>
  97. priority: 0
  98. waterway=rapids:
  99. sign: <i class="fas fa-water"></i>
  100. priority: 0
  101. waterway=lock:
  102. sign: <i class="fas fa-lock"></i>
  103. priority: 1
  104. waterway=lock_gate:
  105. sign: <i class="fas fa-torii-gate"></i>
  106. priority: 1
  107. waterway=sluice_gate:
  108. sign: <i class="fas fa-grip-lines"></i>
  109. priority: 0
  110. seamark:restricted_area:restriction=:
  111. sign: <i class='fa fa-times-rectangle-o'></i>
  112. priority: 1
  113. seamark:bridge:clearance_height=0:
  114. sign: <i class='fa fa-thermometer-0'></i>
  115. priority: 0
  116. seamark:bridge:clearance_height=1:
  117. sign: <i class='fa fa-thermometer-1'></i>
  118. priority: 0
  119. seamark:bridge:clearance_height=2:
  120. sign: <i class='fa fa-thermometer-2'></i>
  121. priority: 0
  122. seamark:bridge:clearance_height=3:
  123. sign: <i class='fa fa-thermometer-3'></i>
  124. priority: 0
  125. seamark:bridge:clearance_height=4:
  126. sign: <i class='fa fa-thermometer-4'></i>
  127. priority: 0