无人机管理后台前端(已迁走)
张含笑
2025-06-12 579821bffd232e5e7614311347c5dc8e8aef31df
src/views/dataCenter/components/dataCenterMap.vue
@@ -25,12 +25,13 @@
const currentAreaPosition = ref({ height: 1987280, latitude: 27.636112, longitude: 115.732975 });
let handler = null;
const props = defineProps(['jobId','mapList']);
console.log('props.mapList',props.mapList);
// 存储地图实体引用
const dataPointEntities = ref([]);
const isMapInitialized = ref(false); //地图加载
const dataPointList = ref([]);
const activeEntity = ref(null); // 当前激活的点
const activeEntity = ref(props.mapList); // 当前激活的点
// 获取弹框box
const detailId = ref('')
@@ -244,6 +245,7 @@
  try {
    const res = await getMapInfoAPI(ids);
    dataPointList.value = res.data.data || [];
console.log('dataPointList.value',dataPointList.value);
    // 确保地图已初始化后再渲染
    if (isMapInitialized.value && viewer) {