12-19
This commit is contained in:
@ -1274,15 +1274,8 @@ class WallRealStereoscopic extends Base {
|
||||
this.labelBackgroundColorStart = this.originalOptions.label.backgroundColor[0]
|
||||
this.labelBackgroundColorEnd = this.originalOptions.label.backgroundColor[1]
|
||||
|
||||
let positions = this.options.positions
|
||||
let fromDegreesArray = []
|
||||
let minimumHeights = []
|
||||
let maximumHeights = []
|
||||
for (let i = 0; i < positions.length; i++) {
|
||||
fromDegreesArray.push(positions[i].lng, positions[i].lat, positions[i].alt)
|
||||
minimumHeights.push(positions[i].alt)
|
||||
maximumHeights.push(positions[i].alt + this.options.extrudedHeight)
|
||||
}
|
||||
syncData(this.sdk, this.options.id)
|
||||
syncSplitData(this.sdk, this.options.id)
|
||||
// this.entity.polylineVolume.positions = Cesium.Cartesian3.fromDegreesArrayHeights(fromDegreesArray)
|
||||
}
|
||||
|
||||
@ -1469,6 +1462,7 @@ class WallRealStereoscopic extends Base {
|
||||
}
|
||||
}
|
||||
let rightEvent = (movement, cartesian) => {
|
||||
that.closeNodeEdit = ()=>{}
|
||||
if (selectPoint) {
|
||||
that.options.positions[selectPoint.index] = originalPosition
|
||||
if (isAdd) {
|
||||
@ -1489,6 +1483,7 @@ class WallRealStereoscopic extends Base {
|
||||
that.tip.destroy()
|
||||
that.material = that.material
|
||||
}
|
||||
that.closeNodeEdit = rightEvent
|
||||
|
||||
function update(isCallback = false) {
|
||||
if (that.entity) {
|
||||
@ -1632,6 +1627,8 @@ class WallRealStereoscopic extends Base {
|
||||
}
|
||||
}
|
||||
|
||||
closeNodeEdit() {}
|
||||
|
||||
update() {
|
||||
if (this.entity) {
|
||||
let positions = this.calculatePositions()
|
||||
|
||||
Reference in New Issue
Block a user