点击暴雨模拟按钮时候显示降雨图层

This commit is contained in:
wzy-warehouse
2026-05-05 19:17:58 +08:00
parent 96c2cf1e21
commit 180f3d864f
8 changed files with 261 additions and 34 deletions
+18
View File
@@ -168,6 +168,17 @@ export const useStatusStore = defineStore('status', () => {
},
});
/**
* 气象图层显示状态
*/
const weatherLayers = reactive({
/** 显示降雨栅格 */
showRainfallGrid: {
show: false,
loading: true,
},
});
// ============================ 地图功能显示状态 ================================
const functionStatus = reactive({
aroundAnalysis: {
@@ -294,6 +305,12 @@ export const useStatusStore = defineStore('status', () => {
loading: false,
};
// 气象图层显示状态重置
weatherLayers.showRainfallGrid = {
show: false,
loading: true,
};
// 功能显示状态重置
functionStatus.aroundAnalysis = {
show: false,
@@ -307,6 +324,7 @@ export const useStatusStore = defineStore('status', () => {
mapLayers,
poiLayers,
infrastructureLayers,
weatherLayers,
functionStatus,
reset,
resetScene,