|
|
"style:sign@": { "_": "{% set lane_forward = backward_lanes < @ %}{% set lane_turn = turn_lanes[@ - 1]|split(';') %}", "width": "0", "pattern0": "dash", "pattern0-repeat": "30m", "pattern0-pixelSize": "3m", "pattern0-offset": "15.0m", "pattern0-path-color": "white", "pattern0-path-width": "0.3m", "pattern0-lineOffset": "{{ lanes_width / -2 + @ * 3 - 1.5 }}m", "patternThrough": "{% if 'through' in lane_turn %}arrowHead{% endif %}", "patternThrough-repeat": "30m", "patternThrough-offset": "{{ lane_forward ? '17m' : '12m' }}", "patternThrough-polygon": "true", "patternThrough-angleCorrection": "{{ lane_forward ? 0 : 180 }}", "patternThrough-pixelSize": "1.2m", "patternThrough-path-color": "white", "patternThrough-path-width": "0", "patternThrough-path-fillOpacity": "1", "patternThrough-lineOffset": "{{ lanes_width / -2 + @ * 3 - 1.5 }}m", "patternLeft": "{% if 'left' in lane_turn %}arrowHead{% endif %}", "patternLeft-repeat": "30m", "patternLeft-offset": "{{ 15 + (lane_forward ? 1 : -1) * (2 - ('through' in lane_turn ? 2 : 0)) }}m", "patternLeft-polygon": "true", "patternLeft-angleCorrection": "{{ lane_forward ? -90 : 90 }}", "patternLeft-pixelSize": "1.2m", "patternLeft-path-color": "white", "patternLeft-path-width": "0", "patternLeft-path-fillOpacity": "1", "patternLeft-lineOffset": "{{ lanes_width / -2 + @ * 3 - 1.5 + (lane_forward ? -1.25 : 1.25) }}m", "patternRight": "{% if 'right' in lane_turn %}arrowHead{% endif %}", "patternRight-repeat": "30m", "patternRight-offset": "{{ 15 + (lane_forward ? 1 : -1) * (2 - ('through' in lane_turn ? 2 : 0)) }}m", "patternRight-polygon": "true", "patternRight-angleCorrection": "{{ lane_forward ? 90 : -90 }}", "patternRight-pixelSize": "1.2m", "patternRight-path-color": "white", "patternRight-path-width": "0", "patternRight-path-fillOpacity": "1", "patternRight-lineOffset": "{{ lanes_width / -2 + @ * 3 - 1.5 + (lane_forward ? 1.25 : -1.25) }}m" }
|