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.

47 lines
1.5 KiB

  1. {
  2. "type": "overpass",
  3. "name": {
  4. "en": "Car routes"
  5. },
  6. "query": {
  7. "10": "relation[type=route][route=road]"
  8. },
  9. "members": true,
  10. "feature": {
  11. "description": "{% if tags.network %}{{ tagTrans('network', tags.network) }}{% endif %}",
  12. "listMarkerSymbol": "{{ markerLine({ 'width': 4, 'color': '#ff0000' )].color })|raw }}",
  13. "styles": ""
  14. },
  15. "memberFeature": {
  16. "pre": [
  17. "{% set refs = [] %}",
  18. "{% if tags.ref %}",
  19. " {% set refs = refs|merge([ tags.ref ]) %}",
  20. "{% endif %}",
  21. "",
  22. "{% for master in masters %}",
  23. " {% if master.tags.ref %}",
  24. " {% set refs = refs|merge([ master.tags.ref ]) %}",
  25. " {% endif %}",
  26. "{% endfor %}"
  27. ],
  28. "body": [
  29. "<h4>Routes</h4>",
  30. "<ul>",
  31. "{% for master in masters %}",
  32. " <li data-object=\"{{ master.id }}\"><b>{{ master.tags.name|default(master.tags.ref) }}</b>{% if master.tags.network %} <i>{{ tagTrans('network', master.tags.network) }}</i>{% endif %}</li>",
  33. "{% endfor %}",
  34. "</ul>"
  35. ],
  36. "listExclude": "1",
  37. "style": {
  38. "color": "#ff0000",
  39. "width": 4,
  40. "opacity": 1,
  41. "text": "{{ refs|join(' ') }} ",
  42. "textRepeat": "1",
  43. "textOffset": "12",
  44. "textFontWeight": "bold"
  45. }
  46. }
  47. }