| | |
| | | * @Author: shuishen 1109946754@qq.com |
| | | * @Date: 2024-11-09 15:41:35 |
| | | * @LastEditors: shuishen 1109946754@qq.com |
| | | * @LastEditTime: 2024-11-26 19:38:30 |
| | | * @LastEditTime: 2024-11-27 11:21:58 |
| | | * @FilePath: \bigScreen\src\views\pd\components\dynamicPanel.vue |
| | | * @Description: |
| | | * |
| | |
| | | |
| | | ] |
| | | |
| | | let positions = modelPosition.map(i => [i.lng, i.lat, 60].join(',')).join(';') |
| | | console.log(positions, 1111111) |
| | | let positions = modelPosition.map(i => [i.lng, i.lat, 64].join(',')).join(';') |
| | | let tc = new DC.TrackController(window.$viewer) |
| | | let track = new DC.Track(positions, 5) |
| | | track.setModel(VITE_APP_BASE + 'gltf/111.gltf', { |
| | | scale: 0.005, |
| | | color: DC.Color.RED, |
| | | track.setModel(VITE_APP_BASE + 'gltf/111.glb', { |
| | | show: true, |
| | | scale: 0.0025, |
| | | // nodeTransformations: { |
| | | // rotation: window.$Cesium.Quaternion.fromHeadingPitchRoll(window.$Cesium.Math.toRadians(0), window.$Cesium.Math.toRadians(0), window.$Cesium.Math.toRadians(0)), |
| | | // } |
| | |
| | | |
| | | tc.addTrack(track) |
| | | |
| | | |
| | | const schemeStart = (item) => { |
| | | emit('closePanel') |
| | | clearAll() |
| | | |
| | | if (item.showModel) { |
| | | window.$viewer.flyToPosition("115.10587903,27.28374884,400,0,-90", () => { |
| | | track.setModel(VITE_APP_BASE + 'gltf/111.gltf', { |
| | | track.setModel(VITE_APP_BASE + 'gltf/111.glb', { |
| | | show: true, |
| | | scale: 0.005, |
| | | color: DC.Color.RED, |
| | | scale: 0.0025, |
| | | // nodeTransformations: { |
| | | // rotation: window.$Cesium.Quaternion.fromHeadingPitchRoll(window.$Cesium.Math.toRadians(0), window.$Cesium.Math.toRadians(0), window.$Cesium.Math.toRadians(0)), |
| | | // } |
| | |
| | | tc.play() |
| | | tc.viewTrack(track, { |
| | | mode: '2', |
| | | pitch: -90, |
| | | pitch: -45, |
| | | range: 400 |
| | | }) |
| | | }) |
| | |
| | | timeFour && (clearTimeout(timeFour), timeFour = null) |
| | | timeFive && (clearTimeout(timeFive), timeFive = null) |
| | | |
| | | track.setModel(VITE_APP_BASE + 'gltf/111.gltf', { |
| | | track.setModel(VITE_APP_BASE + 'gltf/111.glb', { |
| | | show: false, |
| | | scale: 0.005, |
| | | color: DC.Color.RED, |
| | | scale: 0.0025, |
| | | // nodeTransformations: { |
| | | // rotation: window.$Cesium.Quaternion.fromHeadingPitchRoll(window.$Cesium.Math.toRadians(0), window.$Cesium.Math.toRadians(0), window.$Cesium.Math.toRadians(0)), |
| | | // } |