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.

103 lines
3.5 KiB

  1. type: overpass
  2. query:
  3. '14': |-
  4. (
  5. node["canoe"="put_in"];
  6. node["leisure"="slipway"];
  7. way["canoe"="portage"];
  8. nwr[shop~"^(boat)$"]["boat:type"~"^(.*;|)canoe|kayak|standup_paddleboard|dinghy|pedalboat(|;.*)$"];
  9. nwr[rental~"^(boat)$"]["boat:type"~"^(.*;|)canoe|kayak|standup_paddleboard|dinghy|pedalboat(|;.*)$"];
  10. nwr["canoe_rental"="yes"];
  11. nwr["kayak_rental"="yes"];
  12. nwr["standup_paddleboard_rental"="yes"];
  13. nwr["dinghy_rental"="yes"];
  14. nwr["pedalboat_rental"="yes"];
  15. )
  16. feature:
  17. pre: |-
  18. {% if tags.canoe == 'portage' and ( not attribute(tags, 'surface') or attribute(tags, 'surface') == 'water' ) %}
  19. {% set key = 'waterway' %}
  20. {% set value = 'portage' %}
  21. {% elseif tags.canoe %}
  22. {% set key = 'canoe' %}
  23. {% set value = tags.canoe %}
  24. {% elseif tags.leisure %}
  25. {% set key = 'leisure' %}
  26. {% set value = tags.leisure %}
  27. {% elseif tags.shop %}
  28. {% set key = 'shop' %}
  29. {% set value = 'shop' %}
  30. {% elseif tags.rental or tags.canoe_rental or tags.kayak_rental or tags.standup_paddleboard_rental or tags.dingy_rental or tags.pedalboat_rental %}
  31. {% set key = 'shop' %}
  32. {% set value = 'rental' %}
  33. {% endif %}
  34. {% set constIndex = (key ~ "=" ~ value) %}
  35. {% set item = const[constIndex] %}
  36. title: |
  37. {{ localizedTag(tags, 'name') }}
  38. {% if attribute(tags, 'ref') %}
  39. ( {{ localizedTag(tags, 'ref') }} )
  40. {% endif %}
  41. description: |
  42. {{ tagTrans(key, value) }}
  43. body: |-
  44. {% if constIndex in ['canoe=put_in', 'leisure=slipway','canoe=portage'] %}
  45. <dl>
  46. <dt>{{ keyTrans('Description') }}</dt>
  47. <dd>{{ localizedTag(tags, 'description') }}</dd>
  48. <dt>{{ keyTrans('Surface') }}</dt>
  49. <dd>{{ attribute(tags, 'surface') ? tagTrans('surface', attribute(tags, 'surface')) : '' }}</dd>
  50. <dt>{{ keyTrans('Operator') }}</dt>
  51. <dd>{{ attribute(tags, 'operator') ? tagTrans('operator', attribute(tags, 'operator')) : '' }}</dd>
  52. <dt>{{ keyTrans('Access') }}</dt>
  53. <dd>{{ attribute(tags, 'access') ? tagTrans('access', attribute(tags, 'access')) : '' }}</dd>
  54. <dt>{{ keyTrans('Fee') }}</dt>
  55. <dd>{{ attribute(tags, 'fee') ? tagTrans('fee', attribute(tags, 'fee')) : '' }}</dd>
  56. <dt>{{ keyTrans('Wheelchair') }}</dt>
  57. <dd>{{ attribute(tags, 'wheelchair') ? tagTrans('wheelchair', attribute(tags, 'wheelchair')) : '' }}</dd>
  58. <dt>{{ trans('Photos') }}</dt>
  59. <dd>
  60. <ul>
  61. {% if attribute(tags, 'mapillary') %}
  62. <li><a href="https://www.mapillary.com/app/?focus=photo&pKey={{ attribute(tags, 'mapillary') }}" rel="noreferrer" target="_blank">Mapillary</a></li>
  63. {% endif %}
  64. </ul>
  65. </dd>
  66. </dl>
  67. {% endif %}
  68. markerSign: '{{ item[''sign''] | raw }}'
  69. markerSymbol: |
  70. {% if item['sign'] %}{{ markerPointer({ fillColor: '#FFFFFF' }) }}{% endif %}
  71. listMarkerSymbol: |
  72. {% if item['sign'] %}{{ markerCircle({ fillColor: '#FFFFFF' }) }}{% endif %}
  73. priority: |-
  74. {% if item is defined %}
  75. {{ item['priority'] }}
  76. {% else %}
  77. 10
  78. {% endif %}
  79. const:
  80. canoe=portage:
  81. sign: <i class="fas fa-walking"></i>
  82. priority: 2
  83. canoe=put_in:
  84. sign: <i class="fas fa-expand-alt"></i>
  85. priority: 0
  86. leisure=slipway:
  87. sign: <i class="fas fa-ship"></i>
  88. priority: 1
  89. shop=shop:
  90. sign: <i class="fas fa-store-alt"></i>
  91. priority: 3
  92. shop=rental:
  93. sign: <i class="fas fa-store"></i>
  94. priority: 3
  95. waterway=portage:
  96. sign:
  97. priority: 2