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.

128 lines
4.2 KiB

1 year ago
  1. type: overpass
  2. query:
  3. '14': |-
  4. (
  5. node["canoe"~"^(put_in|egress|put_in;egress)$"];
  6. node["leisure"="slipway"];
  7. way["canoe"="portage"];
  8. nwr[shop~"^(boat)$"]["boat:type"~"^(.*;|)canoe|kayak|standup_paddleboard|dinghy|pedalboat(|;.*)$"];
  9. nwr[rental~"^(boat)$"]["boat:type"~"^(.*;|)canoe|kayak|standup_paddleboard|dinghy|pedalboat(|;.*)$"];
  10. nwr["canoe_rental"="yes"];
  11. nwr["kayak_rental"="yes"];
  12. nwr["standup_paddleboard_rental"="yes"];
  13. nwr["dinghy_rental"="yes"];
  14. nwr["pedalboat_rental"="yes"];
  15. )
  16. feature:
  17. pre: |-
  18. {% if tags.canoe == 'portage' and ( not attribute(tags, 'surface') or attribute(tags, 'surface') == 'water' ) %}
  19. {% set key = 'waterway' %}
  20. {% set value = 'portage' %}
  21. {% elseif tags.canoe %}
  22. {% set key = 'canoe' %}
  23. {% set value = tags.canoe %}
  24. {% elseif tags.leisure %}
  25. {% set key = 'leisure' %}
  26. {% set value = tags.leisure %}
  27. {% elseif tags.shop %}
  28. {% set key = 'shop' %}
  29. {% set value = 'shop' %}
  30. {% elseif tags.rental or tags.canoe_rental or tags.kayak_rental or tags.standup_paddleboard_rental or tags.dingy_rental or tags.pedalboat_rental %}
  31. {% set key = 'shop' %}
  32. {% set value = 'rental' %}
  33. {% endif %}
  34. {% set constIndex = (key ~ "=" ~ value) %}
  35. {% set item = const[constIndex] %}
  36. title: |
  37. {{ localizedTag(tags, 'name') }}
  38. {% if attribute(tags, 'ref') %}
  39. ( {{ localizedTag(tags, 'ref') }} )
  40. {% endif %}
  41. description: |
  42. {{ tagTrans(key, value) }}
  43. body: |-
  44. {% if constIndex in ['canoe=put_in', 'canoe=egress', 'canoe=put_in;egress', 'leisure=slipway','canoe=portage'] %}
  45. <ul>
  46. {% if attribute(tags, 'surface') %}
  47. <li class='hasSymbol'>
  48. <i class='fa fa-window-minimize'></i>
  49. {{ keyTrans('Surface') }}:
  50. <span class='value'>{{ attribute(tags, 'surface') ? tagTrans('surface', attribute(tags, 'surface')) : '' }}</span>
  51. </li>
  52. {% endif %}
  53. {% if attribute(tags, 'operator') %}
  54. <li class='hasSymbol'>
  55. <i class='fa fa-drivers-license-o'></i>
  56. {{ keyTrans('Operator') }}:
  57. <span class='value'>{{ attribute(tags, 'operator') ? tagTrans('operator', attribute(tags, 'operator')) : '' }}</span>
  58. </li>
  59. {% endif %}
  60. {% if attribute(tags, 'access') %}
  61. <li class='hasSymbol'>
  62. <i class='fa fa-unlock'></i>
  63. {{ keyTrans('Access') }}:
  64. <span class='value'>{{ attribute(tags, 'access') ? tagTrans('access', attribute(tags, 'access')) : '' }}</span>
  65. </li>
  66. {% endif %}
  67. {% if attribute(tags, 'fee') %}
  68. <li class='hasSymbol'>
  69. <i class='fa fa-money'></i>
  70. {{ keyTrans('Fee') }}:
  71. <span class='value'>{{ attribute(tags, 'fee') ? tagTrans('fee', attribute(tags, 'fee')) : '' }}</span>
  72. </li>
  73. {% endif %}
  74. {% if attribute(tags, 'mapillary') %}
  75. <li class='hasSymbol'>
  76. <i class='fa fa-camera'></i>
  77. {{ trans('Photos') }}:
  78. <span class='value'>
  79. <a href="https://www.mapillary.com/app/?focus=photo&pKey={{ attribute(tags, 'mapillary') }}" rel="noreferrer" target="_blank">Mapillary</a>
  80. </span>
  81. </li>
  82. {% endif %}
  83. </ul>
  84. {% endif %}
  85. <!-- Description and Wheelchair rendered from detailsBody.html. -->
  86. markerSign: '{{ item[''sign''] | raw }}'
  87. markerSymbol: |
  88. {% if item['sign'] %}{{ markerPointer({ fillColor: '#FFFFFF' }) }}{% endif %}
  89. listMarkerSymbol: |
  90. {% if item['sign'] %}{{ markerCircle({ fillColor: '#FFFFFF' }) }}{% endif %}
  91. priority: |-
  92. {% if item is defined %}
  93. {{ item['priority'] }}
  94. {% else %}
  95. 10
  96. {% endif %}
  97. const:
  98. canoe=portage:
  99. sign:
  100. priority: 2
  101. canoe=put_in:
  102. sign: <i class="fas fa-long-arrow-alt-down"></i>
  103. priority: 0
  104. canoe=egress:
  105. sign: <i class="fas fa-long-arrow-alt-up"></i>
  106. priority: 0
  107. canoe=put_in;egress:
  108. sign: <i class="fas fa-arrows-alt-v"></i>
  109. priority: 0
  110. leisure=slipway:
  111. sign: <i class="fas fa-ship"></i>
  112. priority: 1
  113. shop=shop:
  114. sign: <i class="fas fa-store-alt"></i>
  115. priority: 3
  116. shop=rental:
  117. sign: <i class="fas fa-store"></i>
  118. priority: 3
  119. waterway=portage:
  120. sign:
  121. priority: 2