| | |
| | | let color = global.DC.Namespace.Cesium.Color.fromBytes(r, g, b, a) |
| | | let position = item.position.slice(12, item.position.length - 2).replace(/,/g, ';').replace(/ /g, ',') |
| | | |
| | | let positions = position.split(';').map((item, index) => `${item},20`) |
| | | let maxHeight = Math.max(...item.altitude.split(',')) + 5 |
| | | |
| | | let positions = position.split(';').map((item, index) => `${item},${maxHeight}`) |
| | | positions.push(positions[0]) |
| | | positions = positions.join(';') |
| | | if (item.type == 5 && (item.areaType == 2 || item.areaType == 3)) { |
| | |
| | | |
| | | if (params.areaType == 2 || params.areaType == 3) { |
| | | overlay.attrParams.item.altitude = params.altitude |
| | | |
| | | let maxHeight = Math.max(...overlay.attrParams.item.altitude.split(',')) + 5 |
| | | |
| | | 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], 20) |
| | | item = new global.DC.Position(item[0], item[1], maxHeight) |
| | | |
| | | return item |
| | | }) |
| | |
| | | outlineWidth: 4.0, |
| | | }) |
| | | } else { |
| | | positions = position.split(';').map((item, index) => `${item},20`) |
| | | let maxHeight = Math.max(...altitude) + 5 |
| | | |
| | | positions = position.split(';').map((item, index) => `${item},${maxHeight}`) |
| | | positions.push(positions[0]) |
| | | positions = positions.join(';') |
| | | coverage = new global.DC.Wall(positions) |