| | |
| | | let lineOverlayData = overlayData.attrParams.lineObj |
| | | plot.edit(lineOverlayData, (e) => { |
| | | let position = '' |
| | | lineOverlayData._positions.forEach(item => { |
| | | position += item._lng + ' ' + item._lat + ',' |
| | | let lineNewPositions = [] |
| | | lineOverlayData._positions.forEach((item, index) => { |
| | | if (index % 2 == 0) { |
| | | position += item._lng + ' ' + item._lat + ',' |
| | | lineNewPositions.push(item) |
| | | } |
| | | }) |
| | | overlayData.attrParams.lineObj.positions = lineNewPositions |
| | | |
| | | |
| | | position = position.slice(0, position.length - 1) |
| | | this.updateActivityCar({ id: this.policeIconId, color: this.$parent.chooseColor, width: this.lineWidth, type: 1, position: position }, overlayData) |
| | | }) |