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