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.

73 lines
2.1 KiB

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