refactor(frontend): align TJWater Next integrations

This commit is contained in:
2026-08-26 12:26:29 +08:00
parent 6623f4f7fb
commit fee4fc6ce1
51 changed files with 3074 additions and 22280 deletions
+1 -4
View File
@@ -45,7 +45,7 @@ interface MapClickEvent {
const getGeoserverConfig = () => ({
url: config.MAP_URL,
workspace: config.MAP_WORKSPACE,
layers: ["geo_pipes_mat", "geo_junctions_mat", "geo_valves"],
layers: ["pipes", "junctions", "valves"],
wfsVersion: "1.0.0",
outputFormat: "application/json",
});
@@ -489,9 +489,6 @@ const handleMapClickSelectFeatures = async (
// 如果要素来自 VectorTileSource,需要通过 WFS 查询完整信息
const queryId = firstFeature.getProperties().id;
const layerName = firstFeature.getProperties().layer;
if (layerName === "geo_pipes" || layerName === "geo_junctions") {
layerName.concat("_mat");
}
if (!queryId) {
return null;
}