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.

302 lines
10 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.canoe and tags.canoe in ['no','private','discouraged','unknown'] %}
  53. {% set restricted_access_value = tags.canoe %}
  54. {% set restricted_canoe_value = tags.canoe %}
  55. {% elseif tags.portage and tags.portage in ['no','private','discouraged','unknown'] %}
  56. {% set restricted_access_value = tags.portage %}
  57. {% set restricted_portage_value = tags.canoe %}
  58. {% elseif tags.access and tags.access in ['no','private','discouraged','unknown'] %}
  59. {% set restricted_access_value = tags.access %}
  60. {% endif %}
  61. title: |-
  62. {{ localizedTag(tags, 'name') }}
  63. {% if attribute(tags, 'ref') %}
  64. ( {{ localizedTag(tags, 'ref') }} )
  65. {% endif %}
  66. listDetails: |-
  67. {%if attribute(tags, 'waterbody:name')%}
  68. {{ localizedTag(tags, 'waterbody:name') }}
  69. {% endif %}
  70. description: |-
  71. {% if item.detailSign %}
  72. {{ item.detailSign | raw }}
  73. {% endif %}
  74. {{ tagTrans(key, value) }}
  75. body: |-
  76. <ul>
  77. {% if attribute(tags, 'waterbody:name') %}
  78. <li class='hasSymbol'>
  79. <i class="fas fa-water"></i>
  80. <span class='key'>{{ tagTrans('natural', 'water') }}:</span>
  81. <span class='value'>{{ localizedTag(tags, 'waterbody:name') }}</span>
  82. </li>
  83. {% endif %}
  84. {% if attribute(tags, 'surface') %}
  85. <li class='hasSymbol'>
  86. <i class='fa fa-window-minimize'></i>
  87. <span class='key'>{{ keyTrans('surface') }}:</span>
  88. <span class='value'>{{ attribute(tags, 'surface') ? tagTrans('surface', attribute(tags, 'surface')) : '' }}</span>
  89. </li>
  90. {% endif %}
  91. {% if attribute(tags, 'operator') %}
  92. <li class='hasSymbol'>
  93. <i class='fa fa-drivers-license-o'></i>
  94. <span class='key'>{{ keyTrans('operator') }}:</span>
  95. <span class='value'>{{ tagTrans('operator', attribute(tags, 'operator')) }}</span>
  96. </li>
  97. {% endif %}
  98. {% if attribute(tags, 'informal') %}
  99. <li class='hasSymbol'>
  100. <i class='fa fa-unlock'></i>
  101. <span class='key'>{{ keyTrans('informal') }}:</span>
  102. <span class='value'>{{ tagTrans('informal', attribute(tags, 'informal'))}}</span>
  103. </li>
  104. {% endif %}
  105. {% if attribute(tags, 'canoe') %}
  106. {% if tags.canoe != 'portage' %}
  107. <li class='hasSymbol'>
  108. <i class='fa fa-unlock'></i>
  109. <span class='key'>{{ keyTrans('canoe') }}:</span>
  110. <span class='value'>{{ tagTrans('access', attribute(tags, 'canoe')) }}</span>
  111. </li>
  112. {% elseif type == 'way' and attribute(tags, 'highway') and tags.canoe == 'portage' %}
  113. <li class='hasSymbol'>
  114. <i class='fa fa-unlock'></i>
  115. <span class='key'>{{ keyTrans('portage') }}:</span>
  116. <span class='value'>{{ tagTrans('access', 'yes') }}</span>
  117. </li>
  118. {% endif %}
  119. {% endif %}
  120. {% if attribute(tags, 'portage') %}
  121. <li class='hasSymbol'>
  122. <i class='fa fa-unlock'></i>
  123. <span class='key'>{{ keyTrans('portage') }}:</span>
  124. <span class='value'>{{ tagTrans('access', attribute(tags, 'portage')) }}</span>
  125. </li>
  126. {% endif %}
  127. {% if attribute(tags, 'access') %}
  128. <li class='hasSymbol'>
  129. <i class='fa fa-unlock'></i>
  130. <span class='key'>{{ keyTrans('access') }}:</span>
  131. <span class='value'>{{ tagTrans('access', attribute(tags, 'access'))}}</span>
  132. </li>
  133. {% endif %}
  134. {% if attribute(tags, 'fee') %}
  135. <li class='hasSymbol'>
  136. <i class='fa fa-money'></i>
  137. <span class='key'>{{ keyTrans('fee') }}:</span>
  138. <span class='value'>{{ tagTrans('fee', attribute(tags, 'fee')) }}</span>
  139. </li>
  140. {% endif %}
  141. {% if attribute(tags, 'tidal') %}
  142. <li class='hasSymbol'>
  143. <i class="fa fa-arrow-up-from-water-pump"></i>
  144. <span class='key'>{{ keyTrans('tidal') }}:</span>
  145. <span class='value'>{{ tagTrans('tidal', attribute(tags, 'tidal')) }}</span>
  146. </li>
  147. {% endif %}
  148. {% if attribute(tags, 'intermittent') %}
  149. <li class='hasSymbol'>
  150. <i class='fa fa-percentage'></i>
  151. <span class='key'>{{ keyTrans('intermittent') }}:</span>
  152. <span class='value'>{{ tagTrans('intermittent', attribute(tags, 'intermittent')) }}</span>
  153. </li>
  154. {% endif %}
  155. {% if attribute(tags, 'seasonal') %}
  156. <li class='hasSymbol'>
  157. <i class='fa fa-leaf'></i>
  158. <span class='key'>{{ keyTrans('seasonal') }}:</span>
  159. <span class='seasonal'>{{ tagTrans('seasonal', attribute(tags, 'seasonal')) }}</span>
  160. </li>
  161. {% endif %}
  162. {% if attribute(tags, 'mapillary') %}
  163. <li class='hasSymbol'>
  164. <i class='fa fa-camera'></i>
  165. <span class='key'>{{ trans('Photos') }}:</span>
  166. <span class='value'>
  167. <a href="https://www.mapillary.com/app/?focus=photo&pKey={{ attribute(tags, 'mapillary') }}" rel="noreferrer" target="_blank">Mapillary</a>
  168. </span>
  169. </li>
  170. {% endif %}
  171. {% if attribute(tags,'canoe:description') %}
  172. <li class='hasSymbol'>
  173. <img data-src="temaki:canoe">
  174. <span class='value'>{{ localizedTag(tags, 'canoe:description') }}</span>
  175. </li>
  176. {% endif %}
  177. {% if attribute(tags,'wheelchair:description') %}
  178. <li class='hasSymbol'>
  179. <i class='fa fa-wheelchair'></i>
  180. <span class='value'>{{ localizedTag(tags, 'wheelchair:description') }}</span>
  181. </li>
  182. {% endif %}
  183. </ul>
  184. markerSign: '{{ item[''sign''] | raw }}'
  185. markerSymbol: |-
  186. {% if item.symbol=='pointer' %}
  187. {% if restricted_access_value %}
  188. {{ markerPointer({ fillColor: const.marker.style.color_restricted }) }}
  189. {% else %}
  190. {{ markerPointer({ fillColor: const.marker.style.color }) }}
  191. {% endif %}
  192. {% endif %}
  193. listMarkerSymbol: |-
  194. {% if item.symbol=='pointer' %}
  195. {% if restricted_access_value %}
  196. {{ markerCircle({ fillColor: const.marker.style.color_restricted }) }}
  197. {% else %}
  198. {{ markerCircle({ fillColor: const.marker.style.color }) }}
  199. {% endif %}
  200. {% elseif item.symbol == 'polygon' %}
  201. polygon
  202. {% elseif item.symbol == 'line' %}
  203. line
  204. {% endif %}
  205. styles : |
  206. default{% if item.symbol == 'line' %},casing{% endif %}
  207. style:
  208. width: '{{ item.style.width }}'
  209. color: |-
  210. {% if restricted_access_value %}
  211. {{ item.style.color_restricted }}
  212. {% elseif informal_value %}
  213. {{ item.style.color_informal }}
  214. {% else %}
  215. {{ item.style.color }}
  216. {% endif %}
  217. text: |-
  218. {% if item.text %}
  219. {% if attribute(tags, "piste:name") %}
  220. {{ localizedTag(tags, 'piste:name') }}
  221. {% elseif attribute(tags, "name") %}
  222. {{ localizedTag(tags, 'name') }}
  223. {% endif %}
  224. {% endif %}
  225. textRepeat: '1'
  226. textOffset: -8
  227. lineCap: round
  228. dashArray: |-
  229. {% if restricted_access_value %}5,5{% endif %}
  230. style:casing:
  231. width: '{{item.style.casing.width}}'
  232. pane: casing
  233. priority: |-
  234. {% if item is defined %}
  235. {{ item['priority'] }}
  236. {% else %}
  237. 10
  238. {% endif %}
  239. const:
  240. marker:
  241. style:
  242. color: '#B3D2FF'
  243. color_restricted: '#7F7F7F'
  244. portage=portage:
  245. symbol: line
  246. priority: 4
  247. text: true
  248. style:
  249. width: 4
  250. color: '#B3D2FF'
  251. color_informal: '#99A9BF'
  252. color_restricted: '#7F7F7F'
  253. casing:
  254. width: 10
  255. waterway=access_point:
  256. symbol: pointer
  257. sign: <img data-src="temaki:canoe">
  258. detailSign: <i class="fas fa-arrows-alt-v"></i>
  259. priority: 0
  260. canoe=put_in:
  261. symbol: pointer
  262. sign: <img data-src="temaki:canoe">
  263. detailSign: <i class="fas fa-long-arrow-alt-down"></i>
  264. priority: 0
  265. canoe=egress:
  266. symbol: pointer
  267. sign: <img data-src="temaki:canoe">
  268. detailSign: <i class="fas fa-long-arrow-alt-up"></i>
  269. priority: 0
  270. canoe=put_in;egress:
  271. symbol: pointer
  272. sign: <img data-src="temaki:canoe">
  273. detailSign: <i class="fas fa-arrows-alt-v"></i>
  274. priority: 0
  275. leisure=slipway:
  276. symbol: pointer
  277. sign: <img data-src="temaki:canoe">
  278. detailSign: <img src='maki:slipway'>
  279. priority: 1
  280. shop=shop:
  281. symbol: pointer
  282. sign: <i class="fas fa-store-alt"></i>
  283. priority: 3
  284. shop=rental:
  285. symbol: pointer
  286. sign: <i class="fas fa-store"></i>
  287. priority: 3