xushiting il y a 2 ans
Parent
commit
b12e9c8173
2 fichiers modifiés avec 9 ajouts et 0 suppressions
  1. 1 0
      src/graphic/Controls/UIControl.js
  2. 8 0
      src/graphic/Service/DataService.js

+ 1 - 0
src/graphic/Controls/UIControl.js

@@ -162,6 +162,7 @@ export default class UIControl {
         if (roadEdge) {
           // roadEdge.setStyle(selectUI);
           roadEdge[key](selectUI);
+          crossPoint = dataService.getCrossPoint4(focusItem.vectorId);
         } else {
           roadEdge = dataService.getCurveRoadEdge(focusItem.vectorId);
           // roadEdge.setStyle(selectUI);

+ 8 - 0
src/graphic/Service/DataService.js

@@ -436,6 +436,14 @@ export class DataService {
     }
   }
 
+  getCrossPoint4(edgeId) {
+    for (let key in this.vectorData.crossPoints) {
+      if (key.indexOf(edgeId + "-") > -1 || key.indexOf("-" + edgeId) > -1) {
+        return this.vectorData.crossPoints[key];
+      }
+    }
+  }
+
   getCrossPointForEdgeId(edgeId, dir) {
     for (let key in this.vectorData.crossPoints) {
       const crossPoint = this.vectorData.crossPoints[key];