Browse Source

parking_lanes: type offset depending on kerbPosition

parking-lanes
parent
commit
dcec12c639
  1. 36
      parking_lanes.yaml

36
parking_lanes.yaml

@ -34,7 +34,7 @@ feature:
style:leftType: style:leftType:
color: red color: red
offset: | offset: |
{{ 0 - (const.orientation[leftOrientation].width + const.type[leftType].width / 2 + 6) }}
{{ 0 - ((const.orientation[leftOrientation].width) * const.type[leftType].kerbPosition + (const.type[leftType].width / 2) + 4) }}
lineCap: butt lineCap: butt
width: | width: |
{{ const.type[leftType].width }} {{ const.type[leftType].width }}
@ -43,7 +43,7 @@ feature:
style:leftOrientation: style:leftOrientation:
color: red color: red
offset: | offset: |
{{ 0 - (const.orientation[leftOrientation].width / 2 + 4) }}
{{ 0 - ((const.type[leftType].width) * (1 - const.type[leftType].kerbPosition) + const.orientation[leftOrientation].width / 2 + 4) }}
lineCap: butt lineCap: butt
width: | width: |
{{ const.orientation[leftOrientation].width }} {{ const.orientation[leftOrientation].width }}
@ -52,7 +52,7 @@ feature:
style:rightType: style:rightType:
color: blue color: blue
offset: | offset: |
{{ const.orientation[rightOrientation].width + const.type[rightType].width / 2 + 6 }}
{{ (const.orientation[rightOrientation].width) * const.type[rightType].kerbPosition + (const.type[rightType].width / 2) + 4 }}
lineCap: butt lineCap: butt
width: | width: |
{{ const.type[rightType].width }} {{ const.type[rightType].width }}
@ -61,7 +61,7 @@ feature:
style:rightOrientation: style:rightOrientation:
color: blue color: blue
offset: | offset: |
{{ const.orientation[rightOrientation].width / 2 + 4 }}
{{ (const.type[rightType].width) * (1 - const.type[rightType].kerbPosition) + const.orientation[rightOrientation].width / 2 + 4 }}
lineCap: butt lineCap: butt
width: | width: |
{{ const.orientation[rightOrientation].width }} {{ const.orientation[rightOrientation].width }}
@ -72,25 +72,45 @@ const:
'no': 'no':
width: 6 width: 6
dashArray: '6,10' dashArray: '6,10'
kerbPosition: 0
unknown: unknown:
width: 3 width: 3
dashArray: '1,1' dashArray: '1,1'
kerbPosition: 0
lane: lane:
width: 2 width: 2
dashArray: '' dashArray: ''
kerbPosition: 1
street_side:
width: 2
dashArray: '10,5'
kerbPosition: 1
half_on_kerb:
width: 2
dashArray: ''
kerbPosition: 0.5
on_kerb:
width: 2
dashArray: ''
kerbPosition: 0
shoulder:
width: 3
dashArray: '10,3'
kerbPosition: 0
separate: separate:
width: 0 width: 0
dashArray: '' dashArray: ''
kerbPosition: 0
orientation: orientation:
unknown: unknown:
width: 6
width: 8
dashArray: '10,3' dashArray: '10,3'
parallel: parallel:
width: 3
width: 5
dashArray: '10,3' dashArray: '10,3'
diagonal: diagonal:
width: 6
width: 8
dashArray: '5,5' dashArray: '5,5'
perpendicular: perpendicular:
width: 10
width: 12
dashArray: '3,3' dashArray: '3,3'
Loading…
Cancel
Save