实现 SCADA 设备列表数据对接;监测点优化,实现传感器定位;爆管分析,属性面板新增计算属性的获取;更新部分图标;爆管分析定位,更改时间轴样式。

This commit is contained in:
JIANG
2025-10-29 16:39:23 +08:00
parent 86e7349c85
commit a5954624a0
22 changed files with 474 additions and 170 deletions
+5 -1
View File
@@ -3,6 +3,7 @@ import { useMap } from "../MapComponent";
import { Layer } from "ol/layer";
import { Checkbox, FormControlLabel } from "@mui/material";
import WebGLVectorTileLayer from "ol/layer/WebGLVectorTile";
import VectorLayer from "ol/layer/Vector";
const LayerControl: React.FC = () => {
const map = useMap();
@@ -16,7 +17,10 @@ const LayerControl: React.FC = () => {
const mapLayers = map
.getLayers()
.getArray()
.filter((layer) => layer instanceof WebGLVectorTileLayer) as Layer[];
.filter(
(layer) =>
layer instanceof WebGLVectorTileLayer || layer instanceof VectorLayer
) as Layer[];
setLayers(mapLayers);
const visible = new Map<Layer, boolean>();
mapLayers.forEach((layer) => {