| | |
| | | addPlotOverlayData.attrParams = { id: item.id, color: item.color, item } |
| | | |
| | | addPlotOverlayData.on(global.DC.MouseEventType.CLICK, this.$parent.reeditArrowClick) |
| | | addPlotOverlayData.on(global.DC.MouseEventType.MOUSE_OVER, this.$parent.pointMouseOver) |
| | | addPlotOverlayData.on(global.DC.MouseEventType.MOUSE_OUT, this.$parent.pointMouseOut) |
| | | if (item.type == 6 || item.type == 7 || item.type == 8 || item.type == 11) { |
| | | const height = item.altitude.split(',') |
| | | let position = item.position.slice(12, item.position.length - 2).split(',')[0].split(' ') |
| | |
| | | lat: Number(position[1]), |
| | | alt: Number(height[0]), |
| | | } |
| | | |
| | | addPlotOverlayData.on(global.DC.MouseEventType.MOUSE_OVER, this.$parent.pointMouseOver) |
| | | addPlotOverlayData.on(global.DC.MouseEventType.MOUSE_OUT, this.$parent.pointMouseOut) |
| | | |
| | | this.$parent.isHaveFactor = true |
| | | } else { |
| | |
| | | layerName: 'newCarDrawLineLayers', |
| | | positions: positionStr, |
| | | material: color, |
| | | params: data, |
| | | incident: this.$parent.lineOverlayTypeClick |
| | | params: { ...data, item: data, data: data }, |
| | | incident: this.$parent.lineOverlayTypeClick, |
| | | mouseOverIncident: this.$parent.pointMouseOver, |
| | | mouseOutIncident: this.$parent.pointMouseOut |
| | | }) |
| | | |
| | | this.$parent.isHaveLine = true |
| | |
| | | overlay.attrParams.polygonPositionStr = positionStr |
| | | overlay.attrParams.color = params.color |
| | | overlay.attrParams.width = params.width |
| | | overlay.attrParams.remark = params.remark |
| | | |
| | | this.$EventBus.$emit('layerPolygonAdd', { |
| | | layerName: 'newCarDrawLineLayers', |
| | | positions: positionStr, |
| | | material: color, |
| | | params: overlay.attrParams, |
| | | incident: this.$parent.lineOverlayTypeClick |
| | | params: { ...overlay.attrParams, item: overlay.attrParams, data: overlay.attrParams }, |
| | | incident: this.$parent.lineOverlayTypeClick, |
| | | mouseOverIncident: this.$parent.pointMouseOver, |
| | | mouseOutIncident: this.$parent.pointMouseOut |
| | | }) |
| | | |
| | | overlay.remove() |