| | |
| | | //二級菜单点击切换 |
| | | setChangeTwoMenu(res) { |
| | | |
| | | |
| | | |
| | | //关闭打开的信息窗体 |
| | | |
| | | |
| | | |
| | | this.showTwoMenuFlag = res.id; |
| | | this.$store.state.mapMenuBoolean = false; |
| | | this.$store.state.mapMenuBoxFlag = null; |
| | | this.$store.state.mapPopBoolean = false; |
| | |
| | | window.model.deleteObject(); |
| | | window.model = null; |
| | | } |
| | | |
| | | if (this.isMenuFlag != val) { |
| | | sgworld.Analysis.clearCurtainContrast(); |
| | | if (this.isMenuFlag == "d") { |
| | | this.clearAllAnalsy(); |
| | | } |
| | | if (this.isMenuFlag !=val) { |
| | | sgworld.Creator.SimpleGraphic.clear(); |
| | | this.isMenuFlag = val; |
| | | if (this.entityaLayers.length != 0) { |
| | |
| | | } |
| | | this.$store.state.queryInfo = []; |
| | | if (this.$store.state.primitLayer != null) { |
| | | sgworld.Viewer.entities.remove(this.$store.state.primitLayer); |
| | | sgworld.Creator.DeleteObject(this.$store.state.primitLayer); |
| | | this.$store.state.primitLayer = null; |
| | | } |
| | | } |
| | | |
| | | this.showTwoMenuFlag = res.id; |
| | | |
| | | switch (val) { |
| | | case 'a': //图层管理 |
| | |
| | | break; |
| | | } |
| | | }, |
| | | clearAllAnalsy() { |
| | | // switch (this.showTwoMenuFlag) { |
| | | // case 'd1': |
| | | // that.isolineFlag = false; |
| | | // elevationTool.tf = that.isolineFlag; |
| | | // elevationTool.render(); |
| | | // break; |
| | | // case 'd2': |
| | | // that.isslopeFlag = false; |
| | | // elevationTool.type = 'none'; |
| | | // elevationTool.render(); |
| | | // break; |
| | | // } |
| | | }, |
| | | |
| | | |
| | | |
| | | setAnalsy(res) { |
| | | //this.$refs && this.$refs.queryinfo && this.$refs.queryinfo.close("queryinfo"); |
| | | var that = this; |