Main categories of OpenStreetBrowser with support for whitewater
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.

51 lines
2.0 KiB

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