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.

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