Browse Source

修复修改线段时显示原测距的bug

wxp
ctw 2 months ago
parent
commit
214d215b73
  1. 6
      ruoyi-ui/src/views/cesiumMap/index.vue

6
ruoyi-ui/src/views/cesiumMap/index.vue

@ -2623,12 +2623,8 @@ export default {
selectedLineEntity.positions = newPositions selectedLineEntity.positions = newPositions
// //
selectedLineEntity.points[pointIndex] = this.cartesianToLatLng(newPosition) selectedLineEntity.points[pointIndex] = this.cartesianToLatLng(newPosition)
// // 线
const length = this.calculateLineLength(selectedLineEntity.positions) const length = this.calculateLineLength(selectedLineEntity.positions)
this.measurementResult = {
distance: length,
type: 'line'
}
// //
this.viewer.scene.requestRender() this.viewer.scene.requestRender()

Loading…
Cancel
Save