| | |
| | | } |
| | | return; |
| | | } |
| | | if (label === "综合监测设备信息") { |
| | | simStore.DeviceShowSwitch = checked; |
| | | if (checked) { |
| | | if (!treeMap.get("综合监测设备信息")) { |
| | | } else { |
| | | toggleLayerVisible("综合监测设备信息", true); |
| | | } |
| | | } else { |
| | | toggleLayerVisible("综合监测设备信息", false); |
| | | } |
| | | return; |
| | | } |
| | | |
| | | // 其他图层的处理逻辑 |
| | | const list = treeMap.get(label); |
| | |
| | | } else if (entityList && typeof entityList.show !== "undefined") { |
| | | entityList.show = checked; |
| | | } else { |
| | | console.error(`无法设置图层 ${name} 的可见性`); |
| | | // console.error(`无法设置图层 ${name} 的可见性`); |
| | | } |
| | | } |
| | | |
| | |
| | | item.deviceName?.includes("孙胡沟") |
| | | ); |
| | | }; |
| | | |
| | | // 默认加载部分已替换至Device.vue中,逻辑修改为根据当前选择地形切换设备点显示 |
| | | async function initDevicePoint() { |
| | | let list = []; |
| | | await getDevicetList(); |
| | |
| | | * 初始化所有数据 |
| | | */ |
| | | function getData() { |
| | | initDevicePoint(); |
| | | // initDevicePoint(); |
| | | // initDistrictPoint(); |
| | | initDuanmianPoint(); |
| | | addTetrahedron(); |