Some examples how to develop own categories.
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.

33 lines
930 B

2 years ago
  1. type: overpass
  2. name:
  3. en: Roads 2 # English name of the category
  4. query:
  5. 9: way[highway~"^(motorway|trunk)$"];
  6. 11: way[highway~"^(motorway|trunk|primary)$"];
  7. 13: way[highway~"^(motorway|trunk|primary|secondary|tertiary)$"];
  8. 15: way[highway~"^(motorway|trunk|primary|secondary|tertiary|road|residential)$"];
  9. feature:
  10. description: |
  11. {{ tagTrans('highway', tags.highway) }}
  12. markerSymbol: # empty, to hide the marker
  13. listMarkerSymbol: line # show a line which is generated from the style
  14. style:casing:
  15. width: 8
  16. color: '#000000'
  17. pane: casing # use the predefined 'casing' pane, so that this line is below the 'style'
  18. style:
  19. width: 4
  20. color: |
  21. {{ (const[tags.highway]|default(const.default)).color }}
  22. text: |
  23. {{ tags.name }}
  24. textOffset: -8
  25. const:
  26. motorway:
  27. color: '#ff0000'
  28. trunk:
  29. color: '#ff3f00'
  30. primary:
  31. color: '#ff7f00'
  32. default:
  33. color: '#ffff00'