Browse Source

fix intersection point geo file

Victor Domingues 5 years ago
parent
commit
22cbf54398

+ 1 - 3
src/app/components/intersection-component/models/intersection-model.js

@@ -10,9 +10,7 @@ export class IntersectionModel extends PointModel {
     this.visible = visible;
     this.index = index;
     this.color = -65536;
-    this.definitions = [];
-    this.definitions.push(this.r);
-    this.definitions.push(this.s);
+    this.definitions = [{ id: this.r.id }, { id: this.s.id }, { id: this.index + 1 }];
   }
 
   update(aggregator, event) {

+ 1 - 1
src/app/core/models/application/actions/action.js

@@ -56,7 +56,7 @@ export class Action {
     return `${key}:${value}`;
   }
   r(str) {
-    return str.replace(",", " ");
+    return str.replace(/,/g, " ");
   }
   rehydrate() {
     this.id = this.genericObject.id;