| | |
| | | }, |
| | | removeHandle(label) { |
| | | if (!global.map) return; |
| | | debugger |
| | | 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 =>{ |
| | |
| | | }; |
| | | }, |
| | | async createHandle() { |
| | | // debugger |
| | | // this.form.geometry = JSON.stringify(this.form.geometry) |
| | | // this.form.properties = JSON.stringify(this.form.properties) |
| | | // let res = await addMap(this.form) |
| | |
| | | map.startDraw( |
| | | { |
| | | type: 'polygon', |
| | | style: { text: name ,color:this.color}, |
| | | style: { text: name ,color:this.color, clampToGround: true}, |
| | | attr: { |
| | | name, |
| | | }, |
| | |
| | | message:'四色图新增成功', |
| | | }) |
| | | } |
| | | this.$emit('getList') |
| | | }) |
| | | } |
| | | ); |