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.

81 lines
3.3 KiB

  1. {
  2. "type": "overpass",
  3. "name": {
  4. "ca": "Rutes d'energia",
  5. "cs": "Stožáry vysokého napětí",
  6. "de": "Hochspannungsverbindungen",
  7. "en": "Power routes",
  8. "es": "Rutas de energía",
  9. "fr": "Réseaux électriques",
  10. "gl": "Liñas eléctricas",
  11. "hu": "Távvezetékek",
  12. "it": "Linee energetiche",
  13. "ja": "電線のルート",
  14. "nb": "Strømruter",
  15. "nl": "Elektriciteitsleidingen",
  16. "oc": "Linhas electricas",
  17. "pl": "Przebieg kabli energetycznych",
  18. "pt": "Rotas energéticas",
  19. "pt-br": "Rotas de energia",
  20. "ru": "Маршруты энергетики",
  21. "sr": "Далеководи",
  22. "tr": "Elektrik şebekeleri"
  23. },
  24. "query": {
  25. "10": "relation[type=route][route=power]"
  26. },
  27. "members": true,
  28. "feature": {
  29. "pre": "{% set color = '#' ~ tags.operator|default('')|md5|slice(0, 6) %}",
  30. "description": "{% if tags.operator %}{{ tags.operator }}{% endif %}",
  31. "title": "{% if tags.ref and tags.name %}{{ tags.ref }} - {{ tags.name }}{% elseif tags.ref %}{{ tags.ref }}{% elseif tags.name %}{{ tags.name }}{% endif %}",
  32. "listMarkerSymbol": "{{ markerLine({ 'width': 4, 'color': color })|raw }}",
  33. "markerSymbol": "",
  34. "styles": ""
  35. },
  36. "memberFeature": {
  37. "pre": [
  38. "{% set refs = [] %}",
  39. "{% set color = '#d41d8c' %}",
  40. "{% if tags.ref %}",
  41. " {% for ref in tags.ref|split(';') %}",
  42. " {% set refs = refs|merge([ ref|trim ]) %}",
  43. " {% endfor %}",
  44. "{% endif %}",
  45. "",
  46. "{% for master in masters %}",
  47. " {% if master.tags.operator %}",
  48. " {% set color = '#' ~ master.tags.operator|md5|slice(0, 6) %}",
  49. " {% endif %}",
  50. " {% if master.tags.ref %}",
  51. " {% set refs = refs|merge([ master.tags.ref ]) %}",
  52. " {% endif %}",
  53. "{% endfor %}",
  54. "",
  55. "{% set refs = refs|unique|natsort({ insensitive: true }) %}"
  56. ],
  57. "body": [
  58. "<h4>Routes</h4>",
  59. "<ul>",
  60. "{% for master in masters %}",
  61. " {% set _color = '#' ~ master.tags.operator|default('')|md5|slice(0, 6) %}",
  62. " <li data-object=\"{{ master.id }}\" style='list-style: none;'>",
  63. " <span class='markerParent'><div class='marker'>{{ markerLine({ width: 4, color: _color })|raw }}</div></span>",
  64. " <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>",
  65. " <span class='description'>{{ master.tags.operator }}</span>",
  66. " </li>",
  67. "{% endfor %}",
  68. "</ul>"
  69. ],
  70. "listExclude": "1",
  71. "style": {
  72. "color": "{{ color }}",
  73. "width": 4,
  74. "opacity": 1,
  75. "text": "{{ refs|join(' · ') }} ",
  76. "textRepeat": "1",
  77. "textOffset": "12",
  78. "textFontWeight": "bold"
  79. }
  80. }
  81. }