|
@@ -801,13 +801,15 @@ export default class ListenLayer {
|
|
|
}
|
|
|
curveRoadInfo.dir = "left";
|
|
|
} else {
|
|
|
- curveRoadInfo = {
|
|
|
- curveRoadId: curveRoadId,
|
|
|
- type: VectorType.CurveRoad,
|
|
|
- distance: joinInfo.distance,
|
|
|
- x: joinInfo.position.x,
|
|
|
- y: joinInfo.position.y,
|
|
|
- };
|
|
|
+ if (joinInfo.distance < curveRoad.rightWidth) {
|
|
|
+ curveRoadInfo = {
|
|
|
+ curveRoadId: curveRoadId,
|
|
|
+ type: VectorType.CurveRoad,
|
|
|
+ distance: joinInfo.distance,
|
|
|
+ x: joinInfo.position.x,
|
|
|
+ y: joinInfo.position.y,
|
|
|
+ };
|
|
|
+ }
|
|
|
curveRoadInfo.dir = "right";
|
|
|
}
|
|
|
|