xushiting пре 2 година
родитељ
комит
70d5e4bb69
1 измењених фајлова са 3 додато и 0 уклоњено
  1. 3 0
      src/graphic/Geometry/Road.js

+ 3 - 0
src/graphic/Geometry/Road.js

@@ -11,6 +11,9 @@ export default class Road extends Geometry {
     this.rightEdgeId = null;
     this.width = Constant.defaultRoadWidth; //默认宽度
     this.isCurve = false;
+    this.points = []; //中心线上一系列控制点。数组是从start到end。
+    this.leftCount = 1; //左边的路段个数
+    this.rightCount = 1; //右边的路段个数
     this.geoType = VectorType.Road;
     this.setId(vectorId);
   }