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.

208 lines
6.5 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. '10': |-
  27. (
  28. way["piste:type"="ice_skate"];
  29. way[waterway][ice_skates][ice_skates!=kluning];
  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.ice_skates and tags.ice_skates in ['no','private','discouraged'] %}
  59. {% set restricted_access_value = tags.ice_skates %}
  60. {% elseif tags.access and tags.access in ['no','private','discouraged'] %}
  61. {% set restricted_access_value = tags.access %}
  62. {% endif %}
  63. title: |
  64. {% if attribute(tags, "piste:name") %}
  65. {{ localizedTag(tags, 'piste:name') }}
  66. {% else %}
  67. {{ localizedTag(tags, 'name') }}
  68. {% endif %}
  69. {% if attribute(tags, 'ref') %}
  70. ( {{ localizedTag(tags, 'ref') }} )
  71. {% endif %}
  72. listDetails: |-
  73. {%if attribute(tags, 'waterbody:name')%}
  74. {{ localizedTag(tags, 'waterbody:name') }}
  75. {% endif %}
  76. description: |
  77. {{ tagTrans(key, value) }}
  78. body: |-
  79. <ul>
  80. {% if attribute(tags, 'waterbody:name') %}
  81. <li class='hasSymbol'>
  82. <i class="fas fa-water"></i>
  83. {{ tagTrans('natural', 'water') }}:
  84. <span class='value'>{{ localizedTag(tags, 'waterbody:name') }}</span>
  85. </li>
  86. {% endif %}
  87. {% if attribute(tags, 'surface') %}
  88. <li class='hasSymbol'>
  89. <i class='fa fa-window-minimize'></i>
  90. {{ keyTrans('Surface') }}:
  91. <span class='value'>{{ attribute(tags, 'surface') ? tagTrans('surface', attribute(tags, 'surface')) : '' }}</span>
  92. </li>
  93. {% endif %}
  94. {% if attribute(tags, 'operator') %}
  95. <li class='hasSymbol'>
  96. <i class='fa fa-drivers-license-o'></i>
  97. {{ keyTrans('operator') }}:
  98. <span class='value'>{{ tagTrans('operator', attribute(tags, 'operator')) }}</span>
  99. </li>
  100. {% endif %}
  101. {% if attribute(tags, 'access') %}
  102. <li class='hasSymbol'>
  103. <i class='fa fa-unlock'></i>
  104. {{ keyTrans('access') }}:
  105. <span class='value'>{{ tagTrans('access', attribute(tags, 'access'))}}</span>
  106. </li>
  107. {% endif %}
  108. {% if attribute(tags, 'ice_skates') and tags.ice_skates != 'kluning'%}
  109. <li class='hasSymbol'>
  110. <i class='fa fa-unlock'></i>
  111. {{ keyTrans('ice_skates') }}:
  112. <span class='value'>{{ tagTrans('access', attribute(tags, 'ice_skates')) }}</span>
  113. </li>
  114. {% endif %}
  115. {% if attribute(tags, 'kluning') and tags.kluning %}
  116. <li class='hasSymbol'>
  117. <i class='fa fa-unlock'></i>
  118. {{ keyTrans('kluning') }}:
  119. <span class='value'>{{ tagTrans('access', attribute(tags, 'kluning')) }}</span>
  120. </li>
  121. {% elseif tags.highway and tags.ice_skates=='kluning' %}
  122. <li class='hasSymbol'>
  123. <i class='fa fa-unlock'></i>
  124. {{ keyTrans('kluning') }}:
  125. <span class='value'>{{ tagTrans('access', 'yes') }}</span>
  126. </li>
  127. {% endif %}
  128. </ul>
  129. markerSign: '{{ item[''sign''] | raw }}'
  130. markerSymbol: |-
  131. {% if item.symbol=='pointer' %}
  132. {% if restricted_access_value %}
  133. {{ markerPointer({ fillColor: '#7F7F7F' }) }}
  134. {% else %}
  135. {{ markerPointer({ fillColor: '#AA99DD' }) }}
  136. {% endif %}
  137. {% endif %}
  138. listMarkerSymbol: |-
  139. {% if item.symbol == 'pointer' %}
  140. {% if restricted_access_value %}
  141. {{ markerCircle({ fillColor: '#7F7F7F' }) }}
  142. {% else %}
  143. {{ markerCircle({ fillColor: '#AA99DD' }) }}
  144. {% endif %}
  145. {% elseif item.symbol == 'polygon' %}
  146. polygon
  147. {% elseif item.symbol == 'line' %}
  148. line
  149. {% endif %}
  150. style:
  151. width: '{{ item.style.width }}'
  152. color: |-
  153. {% if restricted_access_value %}
  154. #7F7F7F
  155. {% else %}
  156. {{ item.style.color }}
  157. {% endif %}
  158. text: |-
  159. {% if item.text %}
  160. {% if attribute(tags, "piste:name") %}
  161. {{ localizedTag(tags, 'piste:name') }}
  162. {% elseif attribute(tags, "name") %}
  163. {{ localizedTag(tags, 'name') }}
  164. {% endif %}
  165. {% endif %}
  166. textRepeat: '1'
  167. lineCap: round
  168. dashArray: |-
  169. {% if restricted_access_value %}5,5{% endif %}
  170. priority: |-
  171. {% if item is defined %}
  172. {{ item['priority'] }}
  173. {% else %}
  174. 10
  175. {% endif %}
  176. const:
  177. piste:type=ice_skate:
  178. symbol: line
  179. style:
  180. width: 4
  181. color: '#AA99DD'
  182. text: true
  183. priority: 0
  184. 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.
  185. symbol: line
  186. style:
  187. width: 4
  188. color: '#998888'
  189. text: true
  190. priority: 0
  191. waterway=access_point:
  192. symbol: pointer
  193. sign: <i class="fas fa-skating"></i>
  194. priority: 0
  195. leisure=slipway:
  196. symbol: pointer
  197. sign: <i class="fas fa-skating"></i>
  198. priority: 0