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.

251 lines
8.2 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. {{ tagTrans('natural', 'water') }}:
  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. {{ keyTrans('Surface') }}:
  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. {{ keyTrans('operator') }}:
  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. {{ keyTrans('informal') }}:
  113. <span class='value'>{{ tagTrans('informal', attribute(tags, 'informal'))}}</span>
  114. </li>
  115. {% endif %}
  116. {% if attribute(tags, 'access') %}
  117. <li class='hasSymbol'>
  118. <i class='fa fa-unlock'></i>
  119. {{ keyTrans('access') }}:
  120. <span class='value'>{{ tagTrans('access', attribute(tags, 'access'))}}</span>
  121. </li>
  122. {% endif %}
  123. {% if attribute(tags, 'ice_skates') and tags.ice_skates != 'kluning'%}
  124. <li class='hasSymbol'>
  125. <i class='fa fa-unlock'></i>
  126. {{ keyTrans('ice_skates') }}:
  127. <span class='value'>{{ tagTrans('access', attribute(tags, 'ice_skates')) }}</span>
  128. </li>
  129. {% elseif type == 'way' and tags.waterway and tags.waterway != 'access_point' and tags.ice_skates and tags.ice_skates == 'kluning' %}
  130. <li class='hasSymbol'>
  131. <i class='fa fa-unlock'></i>
  132. {{ keyTrans('ice_skates') }}:
  133. <span class='value'>{{ tagTrans('access', 'no') }}</span>
  134. </li>
  135. {% endif %}
  136. {% if attribute(tags, 'kluning') and tags.kluning %}
  137. <li class='hasSymbol'>
  138. <i class='fa fa-unlock'></i>
  139. {{ keyTrans('kluning') }}:
  140. <span class='value'>{{ tagTrans('access', attribute(tags, 'kluning')) }}</span>
  141. </li>
  142. {% elseif tags.highway and tags.ice_skates=='kluning' %}
  143. <li class='hasSymbol'>
  144. <i class='fa fa-unlock'></i>
  145. {{ keyTrans('kluning') }}:
  146. <span class='value'>{{ tagTrans('access', 'yes') }}</span>
  147. </li>
  148. {% endif %}
  149. </ul>
  150. markerSign: '{{ item[''sign''] | raw }}'
  151. markerSymbol: |-
  152. {% if item.symbol=='pointer' %}
  153. {% if restricted_access_value %}
  154. {{ markerPointer({ fillColor: item.style.color_restricted }) }}
  155. {% elseif informal_value %}
  156. {{ markerPointer({ fillColor: item.style.color_informal }) }}
  157. {% else %}
  158. {{ markerPointer({ fillColor: item.style.color }) }}
  159. {% endif %}
  160. {% endif %}
  161. listMarkerSymbol: |-
  162. {% if item.symbol == 'pointer' %}
  163. {% if restricted_access_value %}
  164. {{ markerCircle({ fillColor: item.style.color_restricted }) }}
  165. {% elseif informal_value %}
  166. {{ markerCircle({ fillColor: item.style.color_informal }) }}
  167. {% else %}
  168. {{ markerCircle({ fillColor: item.style.color }) }}
  169. {% endif %}
  170. {% elseif item.symbol == 'polygon' %}
  171. polygon
  172. {% elseif item.symbol == 'line' %}
  173. line
  174. {% endif %}
  175. style:
  176. width: '{{ item.style.width }}'
  177. color: |-
  178. {% if restricted_access_value %}
  179. {{ item.style.color_restricted }}
  180. {% elseif informal_value %}
  181. {{ item.style.color_informal }}
  182. {% else %}
  183. {{ item.style.color }}
  184. {% endif %}
  185. text: |-
  186. {% if item.text %}
  187. {% if attribute(tags, "piste:name") %}
  188. {{ localizedTag(tags, 'piste:name') }}
  189. {% elseif attribute(tags, "name") %}
  190. {{ localizedTag(tags, 'name') }}
  191. {% endif %}
  192. {% endif %}
  193. textRepeat: '1'
  194. lineCap: round
  195. dashArray: |-
  196. {% if restricted_access_value %}5,5{% endif %}
  197. priority: |-
  198. {% if item is defined %}
  199. {{ item['priority'] }}
  200. {% else %}
  201. 10
  202. {% endif %}
  203. const:
  204. piste:type=ice_skate:
  205. symbol: line
  206. style:
  207. width: 4
  208. color: '#AA99DD'
  209. color_informal: '#948CAE'
  210. color_restricted: '#7F7F7F'
  211. text: true
  212. priority: 0
  213. 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.
  214. symbol: line
  215. style:
  216. width: 4
  217. color: '#998888'
  218. color_informal: '#DD9999'
  219. color_restricted: '#7F7F7F'
  220. text: true
  221. priority: 0
  222. waterway=access_point:
  223. symbol: pointer
  224. sign: <i class="fas fa-skating"></i>
  225. detailSign: <i class="fas fa-water"></i>
  226. style:
  227. color: '#AA99DD'
  228. color_informal: '#948CAE'
  229. color_restricted: '#7F7F7F'
  230. priority: 0
  231. leisure=slipway:
  232. symbol: pointer
  233. sign: <i class="fas fa-skating"></i>
  234. detailSign: <img src='maki:slipway'>
  235. style:
  236. color: '#AA99DD'
  237. color_informal: '#948CAE'
  238. color_restricted: '#7F7F7F'
  239. priority: 0