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.

77 lines
2.5 KiB

  1. type: overpass
  2. name:
  3. ca: Rutes en cotxe
  4. cs: Automobilové cesty
  5. de: Autorouten
  6. en: Car routes
  7. es: Rutas de coche
  8. fr: Itinéraires auto
  9. gl: Rotas automobilísticas
  10. hu: Főútvonalak
  11. it: Tratte automobilistiche
  12. ja: 車のルート
  13. nb: Bilruter
  14. nl: Autoroutes
  15. oc: Itineraris auto
  16. pl: Trasy samochodowe
  17. pt: Rotas rodoviárias
  18. pt-br: Rotas rodoviárias
  19. ro: Rute auto
  20. ru: Автомобильные маршруты
  21. sr: Трасе за возила
  22. tr: Araba Rotaları
  23. query:
  24. 10: relation[type=route][route=road]
  25. members: true
  26. feature:
  27. pre: |-
  28. {% set color = '#' ~ tags.network|default('')|md5|slice(0, 6) %}
  29. description: |-
  30. {% if tags.network %}{{ tagTrans('network', tags.network) }}{% endif %}
  31. title: |-
  32. {% if tags.ref and tags.name %}{{ tags.ref }} - {{ tags.name }}{% elseif tags.ref %}{{ tags.ref }}{% elseif tags.name %}{{ tags.name }}{% endif %}
  33. listMarkerSymbol: |-
  34. {{ markerLine({ 'width': 4, 'color': color })|raw }}
  35. markerSymbol: ''
  36. styles: ''
  37. memberFeature:
  38. pre: |-
  39. {% set refs = [] %}
  40. {% set color = '#d41d8c' %}
  41. {% if tags.ref %}
  42. {% for ref in tags.ref|split(';') %}
  43. {% set refs = refs|merge([ ref|trim ]) %}
  44. {% endfor %}
  45. {% endif %}
  46. {% for master in masters %}
  47. {% if master.tags.network %}
  48. {% set color = '#' ~ master.tags.network|md5|slice(0, 6) %}
  49. {% endif %}
  50. {% if master.tags.ref %}
  51. {% set refs = refs|merge([ master.tags.ref ]) %}
  52. {% endif %}
  53. {% endfor %}
  54. {% set refs = refs|unique|natsort({ insensitive: true }) %}
  55. body: |-
  56. <h4>Routes</h4>
  57. <ul>
  58. {% for master in masters %}
  59. {% set _color = '#' ~ master.tags.operator|default('')|md5|slice(0, 6) %}
  60. <li data-object="{{ master.id }}" style='list-style: none;'>
  61. <span class='markerParent'><div class='marker'>{{ markerLine({ width: 4, color: _color })|raw }}</div></span>
  62. <span 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 }}{% else %}{{ trans('unnamed') }}{% endif %}</span>
  63. <span class='description'>{{ tagTrans('network', master.tags.network) }}</span>
  64. </li>
  65. {% endfor %}
  66. </ul>
  67. listExclude: 1
  68. style:
  69. color: '{{ color }}'
  70. width: 4
  71. opacity: 1
  72. text: '{{ refs|join(" · ") }} '
  73. textRepeat: 1
  74. textOffset: 12
  75. textFontWeight: bold