修复 valve 图层不显示的问题;修改节点样式,减小地图放大后的显示大小

This commit is contained in:
JIANG
2025-11-12 11:08:57 +08:00
parent 9d661eaac7
commit 5cd1460df9
3 changed files with 16 additions and 40 deletions

View File

@@ -4,6 +4,7 @@ import { Layer } from "ol/layer";
import { Checkbox, FormControlLabel } from "@mui/material";
import WebGLVectorTileLayer from "ol/layer/WebGLVectorTile";
import VectorLayer from "ol/layer/Vector";
import VectorTileLayer from "ol/layer/VectorTile";
const LayerControl: React.FC = () => {
const map = useMap();
@@ -19,7 +20,7 @@ const LayerControl: React.FC = () => {
.getArray()
.filter(
(layer) =>
layer instanceof WebGLVectorTileLayer || layer instanceof VectorLayer
layer instanceof WebGLVectorTileLayer || layer instanceof VectorTileLayer || layer instanceof VectorLayer
) as Layer[];
setLayers(mapLayers);
const visible = new Map<Layer, boolean>();