From b745ea141fbbaea16b9b13ce18b778fc50f6fcd0 Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Wed, 07 Jan 2026 16:43:26 +0800
Subject: [PATCH] feat:反无系统基建相关处理

---
 applications/drone-command/src/views/dataCockpit/components/MapContainer.vue |   32 ++++++++++++++++++++++++++++++--
 1 files changed, 30 insertions(+), 2 deletions(-)

diff --git a/applications/drone-command/src/views/dataCockpit/components/MapContainer.vue b/applications/drone-command/src/views/dataCockpit/components/MapContainer.vue
index f59947f..bb01816 100644
--- a/applications/drone-command/src/views/dataCockpit/components/MapContainer.vue
+++ b/applications/drone-command/src/views/dataCockpit/components/MapContainer.vue
@@ -1,13 +1,41 @@
 <template>
-	<div>
+	<div class="ztzf-cesium map-container" id="cesium">
 
 	</div>
 </template>
 
 <script setup>
+import { PublicCesium } from '@/utils/cesium/publicCesium'
+let viewInstance = null
+let viewer = null
+onMounted(() => {
+	viewInstance = new PublicCesium({
+		dom: 'cesium',
+		flatMode: false,
+		terrain: false,
+		layerMode: 4,
+		contour: false,
+	})
 
+	viewer = viewInstance.getViewer()
+}) 
+
+onBeforeUnmount(() => {
+	if (viewInstance) {
+		viewInstance.destroy()
+		viewInstance = null
+	}
+
+	viewer = null
+})
 </script>
 
 <style lang="scss" scoped>
-
+.map-container {
+	position: absolute;
+	top: 0;
+	left: 0;
+	width: 100%;
+	height: 100%;
+}
 </style>
\ No newline at end of file

--
Gitblit v1.9.3