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.

61 lines
3.9 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 or 'none' in lane_turn or '' 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. "patternSlightLeft": "{% if 'slight_left' in lane_turn %}arrowHead{% endif %}",
  32. "patternSlightLeft-repeat": "30m",
  33. "patternSlightLeft-offset": "{{ 15 + (lane_forward ? 1 : -1) * (2 - ('through' in lane_turn ? 2 : 0)) }}m",
  34. "patternSlightLeft-polygon": "true",
  35. "patternSlightLeft-angleCorrection": "{{ lane_forward ? -45 : 45 }}",
  36. "patternSlightLeft-pixelSize": "1.2m",
  37. "patternSlightLeft-path-color": "white",
  38. "patternSlightLeft-path-width": "0",
  39. "patternSlightLeft-path-fillOpacity": "1",
  40. "patternSlightLeft-lineOffset": "{{ lanes_width / -2 + @ * 3 - 1.5 + (lane_forward ? -0.75 : 0.75) }}m",
  41. "patternRight": "{% if 'right' in lane_turn %}arrowHead{% endif %}",
  42. "patternRight-repeat": "30m",
  43. "patternRight-offset": "{{ 15 + (lane_forward ? 1 : -1) * (2 - ('through' in lane_turn or 'slight_left' in lane_turn or 'slight_right' in lane_turn ? 2 : 0)) }}m",
  44. "patternRight-polygon": "true",
  45. "patternRight-angleCorrection": "{{ lane_forward ? 90 : -90 }}",
  46. "patternRight-pixelSize": "1.2m",
  47. "patternRight-path-color": "white",
  48. "patternRight-path-width": "0",
  49. "patternRight-path-fillOpacity": "1",
  50. "patternRight-lineOffset": "{{ lanes_width / -2 + @ * 3 - 1.5 + (lane_forward ? 1.25 : -1.25) }}m",
  51. "patternSlightRight": "{% if 'slight_right' in lane_turn %}arrowHead{% endif %}",
  52. "patternSlightRight-repeat": "30m",
  53. "patternSlightRight-offset": "{{ 15 + (lane_forward ? 1 : -1) * (2 - ('through' in lane_turn ? 2 : 0)) }}m",
  54. "patternSlightRight-polygon": "true",
  55. "patternSlightRight-angleCorrection": "{{ lane_forward ? 45 : -45 }}",
  56. "patternSlightRight-pixelSize": "1.2m",
  57. "patternSlightRight-path-color": "white",
  58. "patternSlightRight-path-width": "0",
  59. "patternSlightRight-path-fillOpacity": "1",
  60. "patternSlightRight-lineOffset": "{{ lanes_width / -2 + @ * 3 - 1.5 + (lane_forward ? 0.75 : -0.75) }}m"
  61. }