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.

267 lines
9.0 KiB

  1. name:
  2. ca: Patinatge sobre gel
  3. cs: Bruslení
  4. de: Eislaufen
  5. en: Ice Skating
  6. es: Patinaje sobre hielo
  7. fr: Patinage sur glace
  8. gl: Patinaxe sobre xeo
  9. hu: Korcsolyázás
  10. it: Pattinaggio sul ghiaccio
  11. ja: アイススケート
  12. nb: Skøyter
  13. nl: Schaatsen
  14. oc: Patinatge sus glaç
  15. pl: Łyżwiarstwo
  16. pt: Patinagem no gelo
  17. pt-br: Patinação no gelo
  18. ro: Patinaj pe gheață
  19. ru: Катание на коньках
  20. sr: Клизање
  21. tr: Buz pateni
  22. type: overpass
  23. query:
  24. # Ice rinks are intentionally excluded here as they are covered already by leisure.json and/or sport.json
  25. # TODO: add ice skating relations when there is more than one in the world
  26. '9': |-
  27. (
  28. way["piste:type"="ice_skate"];
  29. way[waterway][ice_skates];
  30. node[leisure=slipway][ice_skates];
  31. node[waterway=access_point][ice_skates];
  32. way[highway][ice_skates=kluning];
  33. way[highway][kluning];
  34. )
  35. feature:
  36. pre: |-
  37. {% if attribute(tags, 'piste:type') == 'ice_skate' %}
  38. {% set key = 'piste:type' %}
  39. {% set value = 'ice_skate' %}
  40. {% elseif type == 'way' and tags.waterway and tags.waterway != 'access_point' and tags.ice_skates %}
  41. {% set key = 'piste:type' %}
  42. {% set value = 'ice_skate' %}
  43. {% elseif type == 'way' and tags.highway and tags.ice_skates == 'kluning' %}
  44. {% set key = 'ice_skates' %}
  45. {% set value = 'kluning' %}
  46. {% elseif type == 'way' and tags.highway and tags.kluning %}
  47. {% set key = 'ice_skates' %}
  48. {% set value = 'kluning' %}
  49. {% elseif tags.waterway == 'access_point' and tags.ice_skates %}
  50. {% set key = 'waterway' %}
  51. {% set value = 'access_point' %}
  52. {% elseif tags.leisure == 'slipway' and tags.ice_skates %}
  53. {% set key = 'leisure' %}
  54. {% set value = 'slipway' %}
  55. {% endif %}
  56. {% set constIndex = (key ~ "=" ~ value) %}
  57. {% set item = const[constIndex] %}
  58. {% if tags.informal and tags.informal in ['yes','unknown'] %}
  59. {% set informal_value = tags.informal %}
  60. {% endif %}
  61. {% if tags.ice_skates and tags.ice_skates in ['no','private','discouraged','unknown'] %}
  62. {% set restricted_access_value = tags.ice_skates %}
  63. {% elseif tags.access and tags.access in ['no','private','discouraged','unknown'] %}
  64. {% set restricted_access_value = tags.access %}
  65. {% elseif type == 'way' and tags.waterway and tags.waterway != 'access_point' and tags.ice_skates and tags.ice_skates == 'kluning' %}
  66. {% set restricted_access_value = tags.ice_skates %}
  67. {% endif %}
  68. title: |
  69. {% if attribute(tags, "piste:name") %}
  70. {{ localizedTag(tags, 'piste:name') }}
  71. {% else %}
  72. {{ localizedTag(tags, 'name') }}
  73. {% endif %}
  74. {% if attribute(tags, 'ref') %}
  75. ( {{ localizedTag(tags, 'ref') }} )
  76. {% endif %}
  77. listDetails: |-
  78. {%if attribute(tags, 'waterbody:name')%}
  79. {{ localizedTag(tags, 'waterbody:name') }}
  80. {% endif %}
  81. description: |-
  82. {% if item.detailSign %}
  83. {{ item.detailSign | raw }}
  84. {% endif %}
  85. {{ tagTrans(key, value) }}
  86. body: |-
  87. <ul>
  88. {% if attribute(tags, 'waterbody:name') %}
  89. <li class='hasSymbol'>
  90. <i class="fas fa-water"></i>
  91. <span class='key'>{{ tagTrans('natural', 'water') }}:</span>
  92. <span class='value'>{{ localizedTag(tags, 'waterbody:name') }}</span>
  93. </li>
  94. {% endif %}
  95. {% if attribute(tags, 'surface') %}
  96. <li class='hasSymbol'>
  97. <i class='fa fa-window-minimize'></i>
  98. <span class='key'>{{ keyTrans('surface') }}:</span>
  99. <span class='value'>{{ attribute(tags, 'surface') ? tagTrans('surface', attribute(tags, 'surface')) : '' }}</span>
  100. </li>
  101. {% endif %}
  102. {% if attribute(tags, 'operator') %}
  103. <li class='hasSymbol'>
  104. <i class='fa fa-drivers-license-o'></i>
  105. <span class='key'>{{ keyTrans('operator') }}:</span>
  106. <span class='value'>{{ tagTrans('operator', attribute(tags, 'operator')) }}</span>
  107. </li>
  108. {% endif %}
  109. {% if attribute(tags, 'informal') %}
  110. <li class='hasSymbol'>
  111. <i class='fa fa-unlock'></i>
  112. <span class='key'>{{ keyTrans('informal') }}:</span>
  113. <span class='value'>{{ tagTrans('informal', attribute(tags, 'informal'))}}</span>
  114. </li>
  115. {% endif %}
  116. {% if attribute(tags, 'ice_skates') and tags.ice_skates != 'kluning'%}
  117. <li class='hasSymbol'>
  118. <i class='fa fa-unlock'></i>
  119. <span class='key'>{{ keyTrans('ice_skates') }}:</span>
  120. <span class='value'>{{ tagTrans('access', attribute(tags, 'ice_skates')) }}</span>
  121. </li>
  122. {% elseif type == 'way' and tags.waterway and tags.waterway != 'access_point' and tags.ice_skates and tags.ice_skates == 'kluning' %}
  123. <li class='hasSymbol'>
  124. <i class='fa fa-unlock'></i>
  125. <span class='key'>{{ keyTrans('ice_skates') }}:</span>
  126. <span class='value'>{{ tagTrans('access', 'no') }}</span>
  127. </li>
  128. {% endif %}
  129. {% if attribute(tags, 'kluning') and tags.kluning %}
  130. <li class='hasSymbol'>
  131. <i class='fa fa-unlock'></i>
  132. <span class='key'>{{ keyTrans('kluning') }}:</span>
  133. <span class='value'>{{ tagTrans('access', attribute(tags, 'kluning')) }}</span>
  134. </li>
  135. {% elseif tags.highway and tags.ice_skates=='kluning' %}
  136. <li class='hasSymbol'>
  137. <i class='fa fa-unlock'></i>
  138. <span class='key'>{{ keyTrans('kluning') }}:</span>
  139. <span class='value'>{{ tagTrans('access', 'yes') }}</span>
  140. </li>
  141. {% endif %}
  142. {% if attribute(tags, 'access') %}
  143. <li class='hasSymbol'>
  144. <i class='fa fa-unlock'></i>
  145. <span class='key'>{{ keyTrans('access') }}:</span>
  146. <span class='value'>{{ tagTrans('access', attribute(tags, 'access'))}}</span>
  147. </li>
  148. {% endif %}
  149. {% if attribute(tags, 'fee') %}
  150. <li class='hasSymbol'>
  151. <i class='fa fa-money'></i>
  152. <span class='key'>{{ keyTrans('fee') }}:</span>
  153. <span class='value'>{{ tagTrans('fee', attribute(tags, 'fee')) }}</span>
  154. </li>
  155. {% endif %}
  156. {% if attribute(tags,'ice_skates:description') %}
  157. <li class='hasSymbol'>
  158. <i class="fas fa-skating"></i>
  159. <span class='value'>{{ localizedTag(tags, 'ice_skates:description') }}</span>
  160. </li>
  161. {% endif %}
  162. {% if attribute(tags,'wheelchair:description') %}
  163. <li class='hasSymbol'>
  164. <i class='fa fa-wheelchair'></i>
  165. <span class='value'>{{ localizedTag(tags, 'wheelchair:description') }}</span>
  166. </li>
  167. {% endif %}
  168. </ul>
  169. markerSign: '{{ item[''sign''] | raw }}'
  170. markerSymbol: |-
  171. {% if item.symbol=='pointer' %}
  172. {% if restricted_access_value %}
  173. {{ markerPointer({ fillColor: item.style.color_restricted }) }}
  174. {% else %}
  175. {{ markerPointer({ fillColor: item.style.color }) }}
  176. {% endif %}
  177. {% endif %}
  178. listMarkerSymbol: |-
  179. {% if item.symbol == 'pointer' %}
  180. {% if restricted_access_value %}
  181. {{ markerCircle({ fillColor: item.style.color_restricted }) }}
  182. {% else %}
  183. {{ markerCircle({ fillColor: item.style.color }) }}
  184. {% endif %}
  185. {% elseif item.symbol == 'polygon' %}
  186. polygon
  187. {% elseif item.symbol == 'line' %}
  188. line
  189. {% endif %}
  190. style:
  191. width: '{{ item.style.width }}'
  192. color: |-
  193. {% if restricted_access_value %}
  194. {{ item.style.color_restricted }}
  195. {% elseif informal_value %}
  196. {{ item.style.color_informal }}
  197. {% else %}
  198. {{ item.style.color }}
  199. {% endif %}
  200. text: |-
  201. {% if item.text %}
  202. {% if attribute(tags, "piste:name") %}
  203. {{ localizedTag(tags, 'piste:name') }}
  204. {% elseif attribute(tags, "name") %}
  205. {{ localizedTag(tags, 'name') }}
  206. {% endif %}
  207. {% endif %}
  208. textRepeat: '1'
  209. lineCap: round
  210. dashArray: |-
  211. {% if restricted_access_value %}5,5{% endif %}
  212. priority: |-
  213. {% if item is defined %}
  214. {{ item['priority'] }}
  215. {% else %}
  216. 10
  217. {% endif %}
  218. const:
  219. piste:type=ice_skate:
  220. symbol: line
  221. style:
  222. width: 4
  223. color: '#AA99DD'
  224. color_informal: '#948CAE'
  225. color_restricted: '#7F7F7F'
  226. text: true
  227. priority: 1
  228. ice_skates=kluning: #To align better with either typical access restrictions or pistes, this tag should be more like a piste:type=kluning or a highway with access ice_skates=kluning. However ice_skates=kluning is the *documented* tagging for now.
  229. symbol: line
  230. style:
  231. width: 4
  232. color: '#998888'
  233. color_informal: '#DD9999'
  234. color_restricted: '#7F7F7F'
  235. text: true
  236. priority: 1
  237. waterway=access_point:
  238. symbol: pointer
  239. sign: <i class="fas fa-skating"></i>
  240. detailSign: <i class="fas fa-water"></i>
  241. style:
  242. color: '#AA99DD'
  243. color_informal: '#948CAE'
  244. color_restricted: '#7F7F7F'
  245. priority: 0
  246. leisure=slipway:
  247. symbol: pointer
  248. sign: <i class="fas fa-skating"></i>
  249. detailSign: <img src='maki:slipway'>
  250. style:
  251. color: '#AA99DD'
  252. color_informal: '#948CAE'
  253. color_restricted: '#7F7F7F'
  254. priority: 0