xushiting 2 лет назад
Родитель
Сommit
f547e68527
2 измененных файлов с 10 добавлено и 1 удалено
  1. 1 1
      server/test/a0k4xu045_202305311600080410/attach/sceneStore
  2. 9 0
      src/graphic/Load.js

Разница между файлами не показана из-за своего большого размера
+ 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 { curvePointService } from "./Service/CurvePointService.js";
 import { curveEdgeService } from "./Service/CurveEdgeService.js";
+import Constant from "./Constant.js";
 
 export default class Load {
   constructor(layer) {
@@ -386,6 +387,14 @@ export default class Load {
           }
         } catch (e) {}
         if (data3d.meterPerPixel) {
+          uiService.setSingleLaneWidth(
+            (Constant.defaultSingleLaneWidth * coordinate.res) /
+              data3d.meterPerPixel
+          );
+          uiService.setRoadMidDivideWidth(
+            (Constant.defaultMidDivideWidth * coordinate.res) /
+              data3d.meterPerPixel
+          );
           coordinate.setRes(data3d.meterPerPixel);
         }
         const width = bgImg.imageData.width;