src/components/left/layerTree/Layer.vue
@@ -630,6 +630,12 @@ } else { mapOL.removeLayerData(treeNode); } }else if(treeNode.sourceType == "DrawGrid"){ if (isCheck) { mapGeo.addGridLayer(treeNode); } else { mapGeo.delGridLayer(treeNode); } } // 只能同时加载一个地形 if ( @@ -1001,6 +1007,9 @@ if (this.selectNode.sourceType === "imgUp") { this.removeimgUpData(this.selectNode) } if (this.selectNode.sourceType === "DrawGrid") { mapGeo.removeGridData(this.selectNode) } this.remove(this.selectNode); this.$refs.tree && this.$refs.tree.setCurrentKey(null); this.selectNode = undefined;