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.

157 lines
5.5 KiB

2 years ago
  1. name:
  2. ca: Instal·lacions de Rem
  3. en: Paddling Amenities
  4. fr: Équipements de pagayage
  5. it: Equipaggiamento per la navigazione a remo
  6. pl: Udogodnienia związane z wiosłowaniem
  7. pt-br: Equipamentos
  8. tr: Kürek Tesisleri
  9. type: overpass
  10. query:
  11. '14': |-
  12. (
  13. node["canoe"~"^(put_in|egress|put_in;egress)$"];
  14. node["waterway"="access_point"];
  15. node["leisure"="slipway"];
  16. way["canoe"="portage"];
  17. way[highway][portage];
  18. nwr[shop~"^(boat)$"]["boat:type"~"^(.*;|)canoe|kayak|standup_paddleboard|dinghy|pedalboat(|;.*)$"];
  19. nwr[rental~"^(boat)$"]["boat:type"~"^(.*;|)canoe|kayak|standup_paddleboard|dinghy|pedalboat(|;.*)$"];
  20. nwr["canoe_rental"="yes"];
  21. nwr["kayak_rental"="yes"];
  22. nwr["standup_paddleboard_rental"="yes"];
  23. nwr["dinghy_rental"="yes"];
  24. nwr["pedalboat_rental"="yes"];
  25. )
  26. feature:
  27. pre: |-
  28. {% if tags.canoe == 'portage' or attribute(tags, 'portage') %}
  29. {% set key = 'portage' %}
  30. {% set value = 'portage' %}
  31. {% elseif tags.waterway and tags.waterway== 'access_point' %}
  32. {% set key = 'waterway' %}
  33. {% set value = tags.waterway %}
  34. {% elseif tags.canoe and tags.canoe not in ['yes','designated','permissive','permit','discouraged','private','no']%}
  35. {% set key = 'canoe' %}
  36. {% set value = tags.canoe %}
  37. {% elseif tags.leisure %}
  38. {% set key = 'leisure' %}
  39. {% set value = tags.leisure %}
  40. {% elseif tags.shop %}
  41. {% set key = 'shop' %}
  42. {% set value = 'shop' %}
  43. {% elseif tags.rental or tags.canoe_rental or tags.kayak_rental or tags.standup_paddleboard_rental or tags.dingy_rental or tags.pedalboat_rental %}
  44. {% set key = 'shop' %}
  45. {% set value = 'rental' %}
  46. {% endif %}
  47. {% set constIndex = (key ~ "=" ~ value) %}
  48. {% set item = const[constIndex] %}
  49. title: |
  50. {{ localizedTag(tags, 'name') }}
  51. {% if attribute(tags, 'ref') %}
  52. ( {{ localizedTag(tags, 'ref') }} )
  53. {% endif %}
  54. description: |
  55. {{ tagTrans(key, value) }}
  56. body: |-
  57. {% if key not in ['shop'] %}
  58. <ul>
  59. {% if attribute(tags, 'surface') %}
  60. <li class='hasSymbol'>
  61. <i class='fa fa-window-minimize'></i>
  62. {{ keyTrans('Surface') }}:
  63. <span class='value'>{{ attribute(tags, 'surface') ? tagTrans('surface', attribute(tags, 'surface')) : '' }}</span>
  64. </li>
  65. {% endif %}
  66. {% if attribute(tags, 'operator') %}
  67. <li class='hasSymbol'>
  68. <i class='fa fa-drivers-license-o'></i>
  69. {{ keyTrans('Operator') }}:
  70. <span class='value'>{{ attribute(tags, 'operator') ? tagTrans('operator', attribute(tags, 'operator')) : '' }}</span>
  71. </li>
  72. {% endif %}
  73. {% if attribute(tags, 'access') %}
  74. <li class='hasSymbol'>
  75. <i class='fa fa-unlock'></i>
  76. {{ keyTrans('Access') }}:
  77. <span class='value'>{{ attribute(tags, 'access') ? tagTrans('access', attribute(tags, 'access')) : '' }}</span>
  78. </li>
  79. {% endif %}
  80. {% if attribute(tags, 'canoe') and tags.canoe in ['yes','designated','permissive','permit','discouraged','private','no'] %}
  81. <li class='hasSymbol'>
  82. <i class='fa fa-unlock'></i>
  83. {{ keyTrans('Canoe Access') }}:
  84. <span class='value'>{{ attribute(tags, 'canoe') ? tagTrans('access', attribute(tags, 'canoe')) : '' }}</span>
  85. </li>
  86. {% endif %}
  87. {% if attribute(tags, 'portage') and tags.portage in ['yes','designated','permissive','permit','discouraged','private','no'] %}
  88. <li class='hasSymbol'>
  89. <i class='fa fa-unlock'></i>
  90. {{ keyTrans('Portage Access') }}:
  91. <span class='value'>{{ attribute(tags, 'portage') ? tagTrans('access', attribute(tags, 'portage')) : '' }}</span>
  92. </li>
  93. {% endif %}
  94. {% if attribute(tags, 'fee') %}
  95. <li class='hasSymbol'>
  96. <i class='fa fa-money'></i>
  97. {{ keyTrans('Fee') }}:
  98. <span class='value'>{{ attribute(tags, 'fee') ? tagTrans('fee', attribute(tags, 'fee')) : '' }}</span>
  99. </li>
  100. {% endif %}
  101. {% if attribute(tags, 'mapillary') %}
  102. <li class='hasSymbol'>
  103. <i class='fa fa-camera'></i>
  104. {{ trans('Photos') }}:
  105. <span class='value'>
  106. <a href="https://www.mapillary.com/app/?focus=photo&pKey={{ attribute(tags, 'mapillary') }}" rel="noreferrer" target="_blank">Mapillary</a>
  107. </span>
  108. </li>
  109. {% endif %}
  110. </ul>
  111. {% endif %}
  112. <!-- Description and Wheelchair rendered from detailsBody.html. -->
  113. markerSign: '{{ item[''sign''] | raw }}'
  114. markerSymbol: |
  115. {% if item['sign'] %}{{ markerPointer({ fillColor: '#FFFFFF' }) }}{% endif %}
  116. listMarkerSymbol: |
  117. {% if item['sign'] %}{{ markerCircle({ fillColor: '#FFFFFF' }) }}{% endif %}
  118. priority: |-
  119. {% if item is defined %}
  120. {{ item['priority'] }}
  121. {% else %}
  122. 10
  123. {% endif %}
  124. const:
  125. portage=portage:
  126. sign:
  127. priority: 2
  128. waterway=access_point:
  129. sign: <i class="fas fa-arrows-alt-v"></i>
  130. priority: 0
  131. canoe=put_in:
  132. sign: <i class="fas fa-long-arrow-alt-down"></i>
  133. priority: 0
  134. canoe=egress:
  135. sign: <i class="fas fa-long-arrow-alt-up"></i>
  136. priority: 0
  137. canoe=put_in;egress:
  138. sign: <i class="fas fa-arrows-alt-v"></i>
  139. priority: 0
  140. leisure=slipway:
  141. sign: <i class="fas fa-ship"></i>
  142. priority: 1
  143. shop=shop:
  144. sign: <i class="fas fa-store-alt"></i>
  145. priority: 3
  146. shop=rental:
  147. sign: <i class="fas fa-store"></i>
  148. priority: 3