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.

52 lines
2.0 KiB

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