| | |
| | | }) |
| | | }, |
| | | moveMessage (e, b) { |
| | | if (b == '') { |
| | | global.viewer.tooltip.enable = false |
| | | } else { |
| | | global.viewer.tooltip.enable = true |
| | | global.viewer.tooltip.showAt(e.windowPosition, b) |
| | | } |
| | | global.viewer.tooltip.enable = true |
| | | global.viewer.tooltip.showAt(e.windowPosition, b) |
| | | }, |
| | | |
| | | mouserMove (e) { |
| | | this.moveMessage(e, '点击确认标注位置') |
| | | }, |
| | | |
| | | addSign () { |
| | | var that = this |
| | | this.$store.commit('set_closeMapClick', true) |
| | | // console.log("开始", "see"); |
| | | global.viewer.on(global.DC.MouseEventType.MOUSE_MOVE, (e) => |
| | | that.moveMessage(e, '点击确认标注位置') |
| | | ) |
| | | global.viewer.on(global.DC.MouseEventType.MOUSE_MOVE, that.mouserMove) |
| | | |
| | | global.viewer.once(global.DC.MouseEventType.CLICK, (e) => { |
| | | if (that.destroyedFlag == false) return |
| | | |
| | | global.viewer.on(global.DC.MouseEventType.MOUSE_MOVE, (e) => |
| | | that.moveMessage(e, '') |
| | | ) |
| | | global.viewer.tooltip.showAt({ x: 100, y: 100 }, '') |
| | | global.viewer.tooltip.enable = false |
| | | global.viewer.off(global.DC.MouseEventType.MOUSE_MOVE, that.mouserMove) |
| | | |
| | | // eslint-disable-next-line no-unused-vars |
| | | var div = new global.DC.DivForms(global.viewer, { |
| | |
| | | this.$store.dispatch('delVisitedViews', this.$route) |
| | | this.$router.push('/pcLayout/default') |
| | | this.$store.commit('clearLabelLayerIcon') |
| | | this.destroyedFlag = false |
| | | global.viewer.tooltip.showAt({ x: 100, y: 100 }, '') |
| | | global.viewer.tooltip.enable = false |
| | | global.viewer.off(global.DC.MouseEventType.MOUSE_MOVE, this.mouseMove) |
| | | } |
| | | }, |
| | | destroyed () { |
| | | var that = this |
| | | that.destroyedFlag = false |
| | | if (global.DC) { |
| | | global.viewer.on(global.DC.MouseEventType.MOUSE_MOVE, (e) => |
| | | that.moveMessage(e, '') |
| | | ) |
| | | } |
| | | global.viewer.tooltip.showAt({ x: 100, y: 100 }, '') |
| | | global.viewer.tooltip.enable = false |
| | | global.viewer.off(global.DC.MouseEventType.MOUSE_MOVE, that.mouseMove) |
| | | this.$store.commit('clearLabelLayerIcon') |
| | | } |
| | | } |