refactor(frontend): align TJWater Next integrations
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user