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.

50 lines
2.0 KiB

  1. {
  2. "type": "overpass",
  3. "name": {
  4. "en": "Mountain bike routes"
  5. },
  6. "query": {
  7. "13": "relation[type=route][route=mtb]"
  8. },
  9. "members": true,
  10. "feature": {
  11. "description": "{{ tagTrans('route', 'mtb') }}",
  12. "listMarkerSymbol": "{{ markerLine({ 'width': 4, 'color': '#007fff' })|raw }}",
  13. "title": "{% if tags.ref and tags.name %}{{ tags.ref }} - {{ tags.name }}{% elseif tags.ref %}{{ tags.ref }}{% elseif tags.name %}{{ tags.name }}{% else %}{{ trans('unnamed') }}{% endif %}",
  14. "styles": "",
  15. "markerSymbol": ""
  16. },
  17. "memberFeature": {
  18. "pre": [
  19. "{% set refs = [] %}",
  20. "",
  21. "{% for master in masters %}",
  22. " {% if master.tags.ref %}",
  23. " {% set refs = refs|merge([ master.tags.ref ]) %}",
  24. " {% endif %}",
  25. "{% endfor %}"
  26. ],
  27. "body": [
  28. "<h4>Routes</h4>",
  29. "<ul class='overpass-layer-list'>",
  30. "{% for master in masters %}",
  31. " <li data-object=\"{{ master.id }}\">",
  32. " <span class='markerParent'><div class='marker'>{{ markerLine({ width: 4, color: '#007fff' })|raw }}</div></span>",
  33. " <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>",
  34. " <span class='description'>{{ tagTrans('route', 'mtb') }}</span>",
  35. " </li>",
  36. "{% endfor %}",
  37. "</ul>"
  38. ],
  39. "listExclude": "1",
  40. "style": {
  41. "color": "#007fff",
  42. "width": 4,
  43. "opacity": 1,
  44. "text": "{{ refs|join(' ') }} ",
  45. "textRepeat": "1",
  46. "textOffset": "12",
  47. "textFontWeight": "bold"
  48. }
  49. }
  50. }