| | |
| | | } else { |
| | | overlayData.show = false |
| | | // this.$parent.removeArrowsListLayer(overlayData) |
| | | let altitude = overlayData.attrParams.item.altitude.split(',') |
| | | let altitude = overlayData.attrParams.item.altitude.split(',').map(item => { |
| | | if (item < 0) { |
| | | item = 0 |
| | | } |
| | | |
| | | item = Number(item) |
| | | |
| | | return item |
| | | }) |
| | | let position = overlayData.attrParams.item.position.slice(11, overlayData.attrParams.item.position.length - 1).replace(/,/g, ';').replace(/ /g, ',') |
| | | let positions |
| | | |
| | | if (position.indexOf('(') != -1) { |
| | | position = position.replace("(", "") |
| | | position = position.replace(")", "") |
| | | } |
| | | |
| | | let positions = position |
| | | if (altitude && altitude.length) positions = position.split(';').map((item, index) => `${item},${altitude[index]}`).join(';') |
| | | let coverage = new global.DC.Polygon(positions) |
| | | |
| | |
| | | overlay.attrParams.item.position = `LINESTRING(${params.position})` |
| | | let positions = params.position.split(',').map(item => { |
| | | item = item.split(' ') |
| | | item = new global.DC.Position(item[0], item[1], 140) |
| | | item = new global.DC.Position(item[0], item[1], 20) |
| | | |
| | | return item |
| | | }) |