| | |
| | | |
| | | overlay.policeType = policeType |
| | | |
| | | that.$parent.overlayObj = overlay |
| | | that.$emit('setOverlayObj', overlay) |
| | | |
| | | document.oncontextmenu = function () { |
| | | if (flag == true && poltType == 'billboard') { |
| | |
| | | that.$parent.choosePoliceColor = '#FF0000' |
| | | that.$parent.policeChooseVisible = true |
| | | } else if (policeType == 'policecar') { |
| | | that.$parent.policeOption = that.$parent.policecarOption |
| | | that.$emit('setPoliceOption') |
| | | |
| | | that.$parent.chooseCarColor = '#FF0000' |
| | | that.$parent.policeChooseCarVisible = true |
| | | } |
| | |
| | | } |
| | | }, { material: global.DC.Color.RED }) |
| | | } else if (type == 'billboard') { |
| | | console.log(11) |
| | | const that = this |
| | | let flag = false |
| | | |
| | |
| | | }, |
| | | |
| | | destroyed () { |
| | | this.removeDraw() |
| | | this.removeDrawArrow() |
| | | drawLayers.remove() |
| | | drawLayers = null |
| | | |
| | | drawArrowLayers.clear() |
| | | drawArrowLayers = null |
| | | }, |
| | | } |
| | | </script> |