xushiting před 2 roky
rodič
revize
f547e68527

Rozdílová data souboru nebyla zobrazena, protože soubor je příliš velký
+ 1 - 1
server/test/a0k4xu045_202305311600080410/attach/sceneStore


+ 9 - 0
src/graphic/Load.js

@@ -22,6 +22,7 @@ import CurveRoad from "./Geometry/CurveRoad.js";
 import { edgeService } from "./Service/EdgeService.js";
 import { edgeService } from "./Service/EdgeService.js";
 import { curvePointService } from "./Service/CurvePointService.js";
 import { curvePointService } from "./Service/CurvePointService.js";
 import { curveEdgeService } from "./Service/CurveEdgeService.js";
 import { curveEdgeService } from "./Service/CurveEdgeService.js";
+import Constant from "./Constant.js";
 
 
 export default class Load {
 export default class Load {
   constructor(layer) {
   constructor(layer) {
@@ -386,6 +387,14 @@ export default class Load {
           }
           }
         } catch (e) {}
         } catch (e) {}
         if (data3d.meterPerPixel) {
         if (data3d.meterPerPixel) {
+          uiService.setSingleLaneWidth(
+            (Constant.defaultSingleLaneWidth * coordinate.res) /
+              data3d.meterPerPixel
+          );
+          uiService.setRoadMidDivideWidth(
+            (Constant.defaultMidDivideWidth * coordinate.res) /
+              data3d.meterPerPixel
+          );
           coordinate.setRes(data3d.meterPerPixel);
           coordinate.setRes(data3d.meterPerPixel);
         }
         }
         const width = bgImg.imageData.width;
         const width = bgImg.imageData.width;