src/components/Tab/Plot.vue
@@ -176,8 +176,8 @@ this.showCreatePanel = true; }, removeHandle(label) { if (!global.map) return; debugger if (!global.map) return; for(let i in this.colorMapList){ if(JSON.parse(this.colorMapList[i].properties).attr.id === label.attr.id){ deleteColorMap({id:this.colorMapList[i].id}).then(res =>{ @@ -228,7 +228,7 @@ map.startDraw( { type: 'polygon', style: { text: name ,color:this.color}, style: { text: name ,color:this.color, clampToGround: true}, attr: { name, }, @@ -264,6 +264,7 @@ message:'四色图新增成功', }) } this.$emit('getList') }) } );