A repository for testing purposes.
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.

41 lines
2.3 KiB

  1. "style:sign@": {
  2. "_": "{% set lane_forward = backward_lanes < @ %}{% set lane_turn = turn_lanes[@ - 1]|split(';') %}",
  3. "width": "0",
  4. "pattern0": "dash",
  5. "pattern0-repeat": "30m",
  6. "pattern0-pixelSize": "3m",
  7. "pattern0-offset": "15.0m",
  8. "pattern0-path-color": "white",
  9. "pattern0-path-width": "0.3m",
  10. "pattern0-lineOffset": "{{ lanes_width / -2 + @ * 3 - 1.5 }}m",
  11. "patternThrough": "{% if 'through' in lane_turn %}arrowHead{% endif %}",
  12. "patternThrough-repeat": "30m",
  13. "patternThrough-offset": "{{ lane_forward ? '17m' : '12m' }}",
  14. "patternThrough-polygon": "true",
  15. "patternThrough-angleCorrection": "{{ lane_forward ? 0 : 180 }}",
  16. "patternThrough-pixelSize": "1.2m",
  17. "patternThrough-path-color": "white",
  18. "patternThrough-path-width": "0",
  19. "patternThrough-path-fillOpacity": "1",
  20. "patternThrough-lineOffset": "{{ lanes_width / -2 + @ * 3 - 1.5 }}m",
  21. "patternLeft": "{% if 'left' in lane_turn %}arrowHead{% endif %}",
  22. "patternLeft-repeat": "30m",
  23. "patternLeft-offset": "{{ 15 + (lane_forward ? 1 : -1) * (2 - ('through' in lane_turn ? 2 : 0)) }}m",
  24. "patternLeft-polygon": "true",
  25. "patternLeft-angleCorrection": "{{ lane_forward ? -90 : 90 }}",
  26. "patternLeft-pixelSize": "1.2m",
  27. "patternLeft-path-color": "white",
  28. "patternLeft-path-width": "0",
  29. "patternLeft-path-fillOpacity": "1",
  30. "patternLeft-lineOffset": "{{ lanes_width / -2 + @ * 3 - 1.5 + (lane_forward ? -1.25 : 1.25) }}m",
  31. "patternRight": "{% if 'right' in lane_turn %}arrowHead{% endif %}",
  32. "patternRight-repeat": "30m",
  33. "patternRight-offset": "{{ 15 + (lane_forward ? 1 : -1) * (2 - ('through' in lane_turn ? 2 : 0)) }}m",
  34. "patternRight-polygon": "true",
  35. "patternRight-angleCorrection": "{{ lane_forward ? 90 : -90 }}",
  36. "patternRight-pixelSize": "1.2m",
  37. "patternRight-path-color": "white",
  38. "patternRight-path-width": "0",
  39. "patternRight-path-fillOpacity": "1",
  40. "patternRight-lineOffset": "{{ lanes_width / -2 + @ * 3 - 1.5 + (lane_forward ? 1.25 : -1.25) }}m"
  41. }