Selection

This commit is contained in:
portree_kid
2020-02-13 21:42:24 +01:00
parent 7c61fedbec
commit f1029a26fb
4 changed files with 65 additions and 3 deletions
+8 -1
View File
@@ -148,8 +148,14 @@
case 'parking':
this.removeParking(this.$store.state.Editable.index)
break;
case 'arc':
this.removeArc(this.$store.state.Editable.data.arc)
break;
}
},
removeArc (arc) {
console.log(arc);
},
removeParking (index) {
if(this.featureLookup[index]===undefined) {
console.error("Lookup " + index + " failed ");
@@ -220,7 +226,8 @@
},
editedNode() {
if (this.$store.state.Editable.data.node===undefined) {
if (this.$store.state.Editable.data.node===undefined ||
this.featureLookup===undefined) {
return;
}
var isOnRunway = Number(this.$store.state.Editable.data.node.isOnRunway);