重构组件结构,添加周边分析组件结构(但无具体实现)

This commit is contained in:
wzy-warehouse
2026-04-21 19:50:57 +08:00
parent 37c412468a
commit 947787f717
29 changed files with 247 additions and 111 deletions
@@ -0,0 +1,38 @@
<template>
<!-- 加载人口网格 -->
<LoadingGeoserverLayer
:id="`people`"
:layers="`xian:xian_people`"
@provide-layers="provideLayers"
/>
</template>
<script lang="ts" setup>
import { useStatusStore } from '@/stores/useStatusStore.ts';
import type { ImageryLayer } from 'cesium';
import { onMounted, watch } from 'vue';
import LoadingGeoserverLayer from '../../common/LoadingGeoserverLayer.vue';
// 保存图层引用
let populationLayer: ImageryLayer | null = null;
onMounted(() => {
// 监听显示
watch(
() => useStatusStore().poiLayers.showPopulationGrid.show,
(newValue: boolean) => {
populationLayer!.show = newValue;
}
);
});
/**
* 提供图层
* @param layer 图层
*/
function provideLayers(layer: ImageryLayer) {
populationLayer = layer;
}
</script>
<style scoped></style>