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.

261 lines
8.7 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. '12': |-
  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 type == 'way' and (tags.canoe == 'portage' or attribute(tags, 'portage')) %}
  29. {% set key = 'portage' %}
  30. {% set value = 'portage' %}
  31. {% elseif type == 'node' and tags.waterway and tags.waterway == 'access_point' %}
  32. {% set key = 'waterway' %}
  33. {% set value = tags.waterway %}
  34. {% elseif tags.leisure %}
  35. {% set key = 'leisure' %}
  36. {% set value = tags.leisure %}
  37. {% elseif tags.shop %}
  38. {% set key = 'shop' %}
  39. {% set value = 'shop' %}
  40. {% elseif tags.rental or tags.canoe_rental or tags.kayak_rental or tags.standup_paddleboard_rental or tags.dingy_rental or tags.pedalboat_rental %}
  41. {% set key = 'shop' %}
  42. {% set value = 'rental' %}
  43. {% elseif type == 'node' and tags.canoe and tags.canoe in ['put_in','egress','put_in;egress'] %}
  44. {% set key = 'canoe' %}
  45. {% set value = tags.canoe %}
  46. {% endif %}
  47. {% set constIndex = (key ~ "=" ~ value) %}
  48. {% set item = const[constIndex] %}
  49. {% if tags.informal and tags.informal in ['yes','unknown'] %}
  50. {% set informal_value = tags.informal %}
  51. {% endif %}
  52. {% if tags.ice_skates and tags.ice_skates in ['no','private','discouraged','unknown'] %}
  53. {% set restricted_access_value = tags.ice_skates %}
  54. {% elseif tags.access and tags.access in ['no','private','discouraged','unknown'] %}
  55. {% set restricted_access_value = tags.access %}
  56. {% elseif type == 'way' and tags.waterway and tags.waterway != 'access_point' and tags.ice_skates and tags.ice_skates == 'kluning' %}
  57. {% set restricted_access_value = tags.ice_skates %}
  58. {% endif %}
  59. title: |-
  60. {{ localizedTag(tags, 'name') }}
  61. {% if attribute(tags, 'ref') %}
  62. ( {{ localizedTag(tags, 'ref') }} )
  63. {% endif %}
  64. listDetails: |-
  65. {%if attribute(tags, 'waterbody:name')%}
  66. {{ localizedTag(tags, 'waterbody:name') }}
  67. {% endif %}
  68. description: |-
  69. {% if item.detailSign %}
  70. {{ item.detailSign | raw }}
  71. {% endif %}
  72. {{ tagTrans(key, value) }}
  73. body: |-
  74. {% if key not in ['shop'] %}
  75. <ul>
  76. {% if attribute(tags, 'waterbody:name') %}
  77. <li class='hasSymbol'>
  78. <i class="fas fa-water"></i>
  79. {{ tagTrans('natural', 'water') }}:
  80. <span class='value'>{{ localizedTag(tags, 'waterbody:name') }}</span>
  81. </li>
  82. {% endif %}
  83. {% if attribute(tags, 'surface') %}
  84. <li class='hasSymbol'>
  85. <i class='fa fa-window-minimize'></i>
  86. {{ keyTrans('Surface') }}:
  87. <span class='value'>{{ attribute(tags, 'surface') ? tagTrans('surface', attribute(tags, 'surface')) : '' }}</span>
  88. </li>
  89. {% endif %}
  90. {% if attribute(tags, 'operator') %}
  91. <li class='hasSymbol'>
  92. <i class='fa fa-drivers-license-o'></i>
  93. {{ keyTrans('operator') }}:
  94. <span class='value'>{{ tagTrans('operator', attribute(tags, 'operator')) }}</span>
  95. </li>
  96. {% endif %}
  97. {% if attribute(tags, 'informal') %}
  98. <li class='hasSymbol'>
  99. <i class='fa fa-unlock'></i>
  100. {{ keyTrans('informal') }}:
  101. <span class='value'>{{ tagTrans('informal', attribute(tags, 'informal'))}}</span>
  102. </li>
  103. {% endif %}
  104. {% if attribute(tags, 'access') %}
  105. <li class='hasSymbol'>
  106. <i class='fa fa-unlock'></i>
  107. {{ keyTrans('access') }}:
  108. <span class='value'>{{ tagTrans('access', attribute(tags, 'access'))}}</span>
  109. </li>
  110. {% endif %}
  111. {% if attribute(tags, 'canoe') and tags.canoe in ['yes','designated','permissive','permit','discouraged','private','no'] %}
  112. <li class='hasSymbol'>
  113. <i class='fa fa-unlock'></i>
  114. {{ keyTrans('canoe') }}:
  115. <span class='value'>{{ attribute(tags, 'canoe') ? tagTrans('access', attribute(tags, 'canoe')) : '' }}</span>
  116. </li>
  117. {% endif %}
  118. {% if attribute(tags, 'portage') and tags.portage in ['yes','designated','permissive','permit','discouraged','private','no'] %}
  119. <li class='hasSymbol'>
  120. <i class='fa fa-unlock'></i>
  121. {{ keyTrans('portage') }}:
  122. <span class='value'>{{ attribute(tags, 'portage') ? tagTrans('access', attribute(tags, 'portage')) : '' }}</span>
  123. </li>
  124. {% endif %}
  125. {% if attribute(tags, 'fee') %}
  126. <li class='hasSymbol'>
  127. <i class='fa fa-money'></i>
  128. {{ keyTrans('Fee') }}:
  129. <span class='value'>{{ attribute(tags, 'fee') ? tagTrans('fee', attribute(tags, 'fee')) : '' }}</span>
  130. </li>
  131. {% endif %}
  132. {% if attribute(tags, 'mapillary') %}
  133. <li class='hasSymbol'>
  134. <i class='fa fa-camera'></i>
  135. {{ trans('Photos') }}:
  136. <span class='value'>
  137. <a href="https://www.mapillary.com/app/?focus=photo&pKey={{ attribute(tags, 'mapillary') }}" rel="noreferrer" target="_blank">Mapillary</a>
  138. </span>
  139. </li>
  140. {% endif %}
  141. </ul>
  142. {% endif %}
  143. markerSign: '{{ item[''sign''] | raw }}'
  144. markerSymbol: |-
  145. {% if item.symbol=='pointer' %}
  146. {% if restricted_access_value %}
  147. {{ markerPointer({ fillColor: const.marker.style.color_restricted }) }}
  148. {% elseif informal_value %}
  149. {{ markerPointer({ fillColor: const.marker.style.color_informal }) }}
  150. {% else %}
  151. {{ markerPointer({ fillColor: const.marker.style.color }) }}
  152. {% endif %}
  153. {% endif %}
  154. listMarkerSymbol: |-
  155. {% if item.symbol=='pointer' %}
  156. {% if restricted_access_value %}
  157. {{ markerCircle({ fillColor: const.marker.style.color_restricted }) }}
  158. {% elseif informal_value %}
  159. {{ markerCircle({ fillColor: const.marker.style.color_informal }) }}
  160. {% else %}
  161. {{ markerCircle({ fillColor: const.marker.style.color }) }}
  162. {% endif %}
  163. {% elseif item.symbol == 'polygon' %}
  164. polygon
  165. {% elseif item.symbol == 'line' %}
  166. line
  167. {% endif %}
  168. styles : |
  169. default{% if item.symbol == 'line' %},casing{% endif %}
  170. style:
  171. width: '{{ item.style.width }}'
  172. color: |-
  173. {% if restricted_access_value %}
  174. {{ item.style.color_restricted }}
  175. {% elseif informal_value %}
  176. {{ item.style.color_informal }}
  177. {% else %}
  178. {{ item.style.color }}
  179. {% endif %}
  180. style:casing:
  181. width: '{{item.style.casing.width}}'
  182. pane: casing
  183. text: |-
  184. {% if item.text %}
  185. {% if attribute(tags, "piste:name") %}
  186. {{ localizedTag(tags, 'piste:name') }}
  187. {% elseif attribute(tags, "name") %}
  188. {{ localizedTag(tags, 'name') }}
  189. {% endif %}
  190. {% endif %}
  191. textRepeat: '1'
  192. lineCap: round
  193. dashArray: |-
  194. {% if restricted_access_value %}5,5{% endif %}
  195. priority: |-
  196. {% if item is defined %}
  197. {{ item['priority'] }}
  198. {% else %}
  199. 10
  200. {% endif %}
  201. const:
  202. marker:
  203. style:
  204. color: '#FFFFFF'
  205. color_informal: '#BFBFBF'
  206. color_restricted: '#7F7F7F'
  207. portage=portage:
  208. symbol: line
  209. priority: 2
  210. text: true
  211. style:
  212. width: 4
  213. color: '#B3D2FF'
  214. color_informal: '#99A9BF'
  215. color_restricted: '#7F7F7F'
  216. casing:
  217. width: 10
  218. waterway=access_point:
  219. symbol: pointer
  220. sign: <img data-src="temaki:canoe">
  221. detailSign: <i class="fas fa-arrows-alt-v"></i>
  222. priority: 0
  223. canoe=put_in:
  224. symbol: pointer
  225. sign: <img data-src="temaki:canoe">
  226. detailSign: <i class="fas fa-long-arrow-alt-down"></i>
  227. priority: 0
  228. canoe=egress:
  229. symbol: pointer
  230. sign: <img data-src="temaki:canoe">
  231. detailSign: <i class="fas fa-long-arrow-alt-up"></i>
  232. priority: 0
  233. canoe=put_in;egress:
  234. symbol: pointer
  235. sign: <img data-src="temaki:canoe">
  236. detailSign: <i class="fas fa-arrows-alt-v"></i>
  237. priority: 0
  238. leisure=slipway:
  239. symbol: pointer
  240. sign: <img data-src="temaki:canoe">
  241. detailSign: <img src='maki:slipway'>
  242. priority: 1
  243. shop=shop:
  244. symbol: pointer
  245. sign: <i class="fas fa-store-alt"></i>
  246. priority: 3
  247. shop=rental:
  248. sign: <i class="fas fa-store"></i>
  249. priority: 3