From e4bc365cdca026cf7c94717eb5fad3b80cce1567 Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Thu, 22 Jan 2026 16:00:24 +0800
Subject: [PATCH] feat:添加地形及报错处理

---
 applications/drone-command/src/components/map-container/device-map-container.vue |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/applications/drone-command/src/components/map-container/device-map-container.vue b/applications/drone-command/src/components/map-container/device-map-container.vue
index 46199a1..d34c53a 100644
--- a/applications/drone-command/src/components/map-container/device-map-container.vue
+++ b/applications/drone-command/src/components/map-container/device-map-container.vue
@@ -1,7 +1,7 @@
 <template>
 	<div class="map-shell">
 		<CommonCesiumMap ref="mapRef" class="command-cesium map-container" :dom-id="props.containerId" :active="true"
-			:flat-mode="false" :terrain="false" :layer-mode="4" :contour="false" :boundary="false"
+			:flat-mode="false" :terrain="true" :layer-mode="4" :contour="false" :boundary="false"
 			:show-admin-boundary="true" :zoom-to-boundary="true" :enable-stage-emit="true" :cluster-height="100000"
 			@ready="handleMapReady" @stage-change="handleStageChange" />
 		<div v-if="props.showLayerControl" class="layer-control-root" :class="{ collapsed: props.leftCollapsed }">
@@ -352,7 +352,7 @@
 	devices.forEach((item, index) => {
 		const position = getDevicePosition(item)
 		if (!position) return
-		const entityId = `online-device-${item.id ?? index}`
+		const entityId = `online-device-${item.id ?? index}-${index}`
 		deviceEntityIds.add(entityId)
 		addDeviceRings(position, entityId, detailVisible.value)
 		const entity = viewer.entities.add({

--
Gitblit v1.9.3