智慧园区前端大屏
shuishen
2024-11-27 9238af1d19a13553a4bf8bfe5c14518126f47161
突发事件模拟更新
1 files modified
24 ■■■■■ changed files
src/views/pd/components/dynamicPanel.vue 24 ●●●●● patch | view | raw | blame | history
src/views/pd/components/dynamicPanel.vue
@@ -2,7 +2,7 @@
 * @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: 
 * 
@@ -196,13 +196,12 @@
]
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)),
  // }
@@ -210,17 +209,15 @@
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)),
        // }
@@ -229,7 +226,7 @@
      tc.play()
      tc.viewTrack(track, {
        mode: '2',
        pitch: -90,
        pitch: -45,
        range: 400
      })
    })
@@ -416,10 +413,9 @@
  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)),
    // }