GuLiMmo
2024-03-01 d87242f609a6ebaba6f2b45b2c0b41f961e92d4b
src/components/GMap.vue
@@ -735,6 +735,7 @@
        :payloads="osdVisible.payloads">
      </DroneControlPanel>
    </div>
    <waylineTool />
  </div>
</template>
@@ -782,6 +783,7 @@
import Cesium from './cesiumMap/cesium.vue'
import { convertTimestampToDate } from '/@/utils/time'
import { cesiumOperation } from '/@/hooks/use-cesium-tsa'
import waylineTool from './waylinetool/index.vue'
export default defineComponent({
  components: {
    BorderOutlined,
@@ -807,6 +809,7 @@
    CarryOutOutlined,
    RocketOutlined,
    DesktopOutlined,
    waylineTool
  },
  name: 'GMap',
  props: {},
@@ -1091,7 +1094,7 @@
        url: liveURL,
        video_id: videoId,
        url_type: 1,
        video_quality: 0
        video_quality: 1
      })
        .then(res => {
          if (res.code !== 0) return
@@ -1159,6 +1162,7 @@
          deviceInfo.device = data.deviceInfo[osdVisible.value.sn]
        }
      }
      if (data.currentType === EDeviceTypeName.Dock && data.dockInfo[data.currentSn]) {
        if (osdVisible.value.visible && osdVisible.value.is_dock && osdVisible.value.gateway_sn !== '') {
          deviceInfo.dock = data.dockInfo[osdVisible.value.gateway_sn]
@@ -1246,9 +1250,10 @@
      // 设置无人机范围
      // cesium.removeById('rangeEllipse')
      const { dock: { basic_osd } } = deviceInfo
      const ellipseSetting = {
        longitude: basic_osd.longitude,
        latitude: basic_osd.latitude
        longitude: basic_osd?.longitude,
        latitude: basic_osd?.latitude
      }
      cesium.addEllipse(ellipseSetting)
      cesium.flyTo(ellipseSetting, 5, 20000)