|
|
"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", "patternSlightLeft": "{% if 'slight_left' in lane_turn %}arrowHead{% endif %}", "patternSlightLeft-repeat": "30m", "patternSlightLeft-offset": "{{ 15 + (lane_forward ? 1 : -1) * (2 - ('through' in lane_turn ? 2 : 0)) }}m", "patternSlightLeft-polygon": "true", "patternSlightLeft-angleCorrection": "{{ lane_forward ? -45 : 45 }}", "patternSlightLeft-pixelSize": "1.2m", "patternSlightLeft-path-color": "white", "patternSlightLeft-path-width": "0", "patternSlightLeft-path-fillOpacity": "1", "patternSlightLeft-lineOffset": "{{ lanes_width / -2 + @ * 3 - 1.5 + (lane_forward ? -0.75 : 0.75) }}m", "patternRight": "{% if 'right' in lane_turn %}arrowHead{% endif %}", "patternRight-repeat": "30m", "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", "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", "patternSlightRight": "{% if 'slight_right' in lane_turn %}arrowHead{% endif %}", "patternSlightRight-repeat": "30m", "patternSlightRight-offset": "{{ 15 + (lane_forward ? 1 : -1) * (2 - ('through' in lane_turn ? 2 : 0)) }}m", "patternSlightRight-polygon": "true", "patternSlightRight-angleCorrection": "{{ lane_forward ? 45 : -45 }}", "patternSlightRight-pixelSize": "1.2m", "patternSlightRight-path-color": "white", "patternSlightRight-path-width": "0", "patternSlightRight-path-fillOpacity": "1", "patternSlightRight-lineOffset": "{{ lanes_width / -2 + @ * 3 - 1.5 + (lane_forward ? 0.75 : -0.75) }}m" }
|