Browse Source

Merge branch 'master' of http://192.168.0.115:3000/bill/traffic-laser

bill 2 năm trước cách đây
mục cha
commit
3d12aa7819
1 tập tin đã thay đổi với 9 bổ sung7 xóa
  1. 9 7
      src/graphic/ListenLayer.js

+ 9 - 7
src/graphic/ListenLayer.js

@@ -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";
       }