| | |
| | | * @Author: shuishen 1109946754@qq.com |
| | | * @Date: 2024-11-09 15:41:35 |
| | | * @LastEditors: shuishen 1109946754@qq.com |
| | | * @LastEditTime: 2024-11-26 19:08:39 |
| | | * @LastEditTime: 2024-11-26 19:38:30 |
| | | * @FilePath: \bigScreen\src\views\pd\components\dynamicPanel.vue |
| | | * @Description: |
| | | * |
| | |
| | | |
| | | fiveContent: '应急指挥部指导企业处理受污染废水, 监测公共应急池水质 ,确保达标后安全转运至绿源污水处理厂。', |
| | | fivePointPosition: { |
| | | lng: 115.10845441, |
| | | lat: 27.27327366 |
| | | lng: 115.10843364, |
| | | lat: 27.27320219 |
| | | }, |
| | | fivetime: 25000, |
| | | }, |
| | |
| | | |
| | | if (item.showModel) { |
| | | window.$viewer.flyToPosition("115.10587903,27.28374884,400,0,-90", () => { |
| | | track.setModel(VITE_APP_BASE + 'gltf/111.gltf', { |
| | | show: true, |
| | | scale: 0.005, |
| | | color: DC.Color.RED, |
| | | // 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', |
| | |
| | | timeFour && (clearTimeout(timeFour), timeFour = null) |
| | | timeFive && (clearTimeout(timeFive), timeFive = null) |
| | | |
| | | track.setModel(VITE_APP_BASE + 'gltf/111.gltf', { |
| | | show: false, |
| | | scale: 0.005, |
| | | color: DC.Color.RED, |
| | | // nodeTransformations: { |
| | | // rotation: window.$Cesium.Quaternion.fromHeadingPitchRoll(window.$Cesium.Math.toRadians(0), window.$Cesium.Math.toRadians(0), window.$Cesium.Math.toRadians(0)), |
| | | // } |
| | | }) |
| | | |
| | | dynamicVectorLayer.clear() |
| | | dynamicHtmlLayer.clear() |
| | | dynamicLineVectorLayer.clear() |
| | |
| | | onUnmounted(() => { |
| | | clearAll() |
| | | |
| | | tc.clear() |
| | | dynamicVectorLayer && window.$viewer.removeLayer(dynamicVectorLayer) |
| | | dynamicHtmlLayer && window.$viewer.removeLayer(dynamicHtmlLayer) |
| | | dynamicLineVectorLayer && window.$viewer.removeLayer(dynamicLineVectorLayer) |