jinx преди 1 година
родител
ревизия
7e0d0c0592
променени са 1 файла, в които са добавени 3 реда и са изтрити 2 реда
  1. 3 2
      src/graphic/Geometry/RoadEdge.js

+ 3 - 2
src/graphic/Geometry/RoadEdge.js

@@ -84,8 +84,9 @@ export default class RoadEdge extends Geometry {
       this.roadSide = {};
       this.roadSide["width"] = Constant.roadSideWidth;
     }
-    // let roadSidePoints = mathUtil.RectangleVertex(startPoint, endPoint, (this.roadSide.width * 2) / 5);
-    let roadSidePoints = mathUtil.RectangleVertex(startPoint, endPoint, (this.roadSide.width * 100 * window.devicePixelRatio) / 5);
+
+    // let roadSidePoints = mathUtil.RectangleVertex(startPoint, endPoint, (this.roadSide.width * 100 * window.devicePixelRatio) / 5);
+    let roadSidePoints = mathUtil.RectangleVertex(startPoint, endPoint, (this.roadSide.width * 2 * coordinate.ratio) / coordinate.res);
     for (let key in road) {
       if (this.vectorId == road[key]) {
         if (key == "rightEdgeId") {