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.

108 lines
3.6 KiB

  1. name:
  2. ca: Rutes de Rem
  3. en: Paddling Routes
  4. fr: Itinéraires en pagayage
  5. it: Rotte per la navigazione a remo
  6. pl: Trasy wioślarskie
  7. pt-br: Rotas de navegação a remo
  8. tr: Kürek Rotaları
  9. type: overpass
  10. query:
  11. '2': relation[type=route][route~"^(|.*;)canoe(|;.*)$"][network~'^(|.*;)(ipn)(|;.*)$']
  12. '4': relation[type=route][route~"^(|.*;)canoe(|;.*)$"][network~'^(|.*;)(ipn|npn)(|;.*)$']
  13. '6': relation[type=route][route~"^(|.*;)canoe(|;.*)$"][network~'^(|.*;)(ipn|npn|rpn)(|;.*)$']
  14. '8': relation[type=route][route~"^(|.*;)canoe(|;.*)$"][network~'^(|.*;)(ipn|npn|rpn|lpn)(|;.*)$']
  15. '10': (relation[type=route][route~"^(|.*;)canoe(|;.*)$"]
  16. members: true
  17. feature:
  18. pre: |-
  19. {% set network = tags.network %}
  20. {% for n in tags.network|split(';') %}
  21. {% if n|matches('pn$') %}{% set network = n %}{% endif %}
  22. {% endfor %}
  23. priority: '{{ const[network].priority|default(4) }}'
  24. description: '{% if network %}{{ tagTrans(''network'', network) }}{% endif %}'
  25. listMarkerSymbol: '{{ markerLine({ ''width'': 4, ''color'': const[network|default('''')].color|default(const[''''].color) })|raw }}'
  26. title: '{% if tags.ref and tags.name %}{{ tags.ref }} - {{ tags.name }}{% elseif tags.ref %}{{ tags.ref }}{% elseif tags.name %}{{ tags.name }}{% endif %}'
  27. styles: ''
  28. markerSymbol: ''
  29. memberFeature:
  30. pre: |-
  31. {% set priority = 4 %}
  32. {% set network = '' %}
  33. {% set refs = [] %}
  34. {% for master in masters %}
  35. {% set masterNetwork = '' %}
  36. {% for n in master.tags.network|split(';') %}
  37. {% if n|matches('pn$') %}{% set masterNetwork = n %}{% endif %}
  38. {% endfor %}
  39. {% set _p = const[masterNetwork].priority|default(4) %}
  40. {% if _p < priority %}
  41. {% set priority = _p %}
  42. {% set network = masterNetwork %}
  43. {% endif %}
  44. {% if master.tags.ref %}
  45. {% set refs = refs|merge([ master.tags.ref ]) %}
  46. {% endif %}
  47. {% endfor %}
  48. body: |-
  49. <h4>Routes</h4>
  50. <ul class='overpass-layer-list'>
  51. {% for master in masters %}
  52. {% set masterNetwork = '' %}
  53. {% for n in master.tags.network|split(';') %}
  54. {% if n|matches('pn$') %}{% set masterNetwork = n %}{% endif %}
  55. {% endfor %}
  56. <li data-object="{{ master.id }}"><a>
  57. <div class='marker'>
  58. <div class='symbol'>{{ markerLine({ width: 4, color: const[masterNetwork].color|default(const[''].color) })|raw }}</div>
  59. </div>
  60. <div class='content'>
  61. <div class='description'>{{ tagTrans('network', masterNetwork) }}</div>
  62. <div class='title'>{% if master.tags.ref and master.tags.name %}{{ master.tags.ref }} - {{ master.tags.name|default(master.tags.ref) }}{% elseif master.tags.ref %}{{ master.tags.ref }}{% elseif master.tags.name %}{{ master.tags.name }}{% endif %}</div>
  63. </div>
  64. </a></li>
  65. {% endfor %}
  66. </ul>
  67. listExclude: '1'
  68. style:
  69. color: '{{ const[network].color }}'
  70. width: 4
  71. opacity: 1
  72. text: '{{ refs|join('' · '') }} '
  73. textRepeat: '1'
  74. textOffset: '12'
  75. textFontWeight: bold
  76. const:
  77. ipn:
  78. color: '#ff0000'
  79. priority: 0
  80. zoom: 10
  81. npn:
  82. color: '#ff00ba'
  83. priority: 1
  84. zoom: 11
  85. rpn:
  86. color: '#ba00ff'
  87. priority: 2
  88. zoom: 12
  89. lpn:
  90. color: '#0000ff'
  91. priority: 3
  92. zoom: 14
  93. '':
  94. color: '#007fff'
  95. priority: 4
  96. zoom: 14
  97. info: |-
  98. <table>
  99. {% for value, data in const %}
  100. {% if data.zoom <= map.zoom %}
  101. <tr>
  102. <td>{{ markerLine({ 'width': 4, color: data.color })|raw }}</td>
  103. <td>{% if value %}{{ tagTrans('network', value) }}{% else %}{{ trans('unknown') }}{% endif %}</td>
  104. </tr>
  105. {% endif %}
  106. {% endfor %}
  107. </table>