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.

32 lines
915 B

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