NPE in editArc
This commit is contained in:
parent
8fccc23009
commit
034c132347
@ -279,6 +279,8 @@
|
|||||||
},
|
},
|
||||||
editedArc() {
|
editedArc() {
|
||||||
console.log('Edited Arc : ' + this.$store.state.Editable.index);
|
console.log('Edited Arc : ' + this.$store.state.Editable.index);
|
||||||
|
if (!this.groundnetLayerGroup)
|
||||||
|
return;
|
||||||
var arc = this.groundnetLayerGroup.getLayer(this.$store.state.Editable.index);
|
var arc = this.groundnetLayerGroup.getLayer(this.$store.state.Editable.index);
|
||||||
if (arc && arc instanceof L.Polyline) {
|
if (arc && arc instanceof L.Polyline) {
|
||||||
arc.options.attributes = Object.assign({}, this.$store.state.Editable.data.arc)
|
arc.options.attributes = Object.assign({}, this.$store.state.Editable.data.arc)
|
||||||
|
Loading…
Reference in New Issue
Block a user