From f137883e4c005fc09b97b8f1f1189cafea4cecc3 Mon Sep 17 00:00:00 2001 From: JIANG Date: Wed, 31 Dec 2025 15:16:30 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=20geo=5Fvalves=20=E5=9B=BE?= =?UTF-8?q?=E5=B1=82=E7=9A=84=E6=9F=A5=E8=AF=A2=EF=BC=9B=E8=B0=83=E6=95=B4?= =?UTF-8?q?=E6=9F=A5=E8=AF=A2=E8=BF=94=E5=9B=9E=E7=9A=84=E5=85=83=E7=B4=A0?= =?UTF-8?q?=E9=A1=BA=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/mapQueryService.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/utils/mapQueryService.ts b/src/utils/mapQueryService.ts index 47d8e46..d023281 100644 --- a/src/utils/mapQueryService.ts +++ b/src/utils/mapQueryService.ts @@ -45,7 +45,7 @@ interface MapClickEvent { const GEOSERVER_CONFIG = { url: config.MAP_URL, workspace: config.MAP_WORKSPACE, - layers: ["geo_pipes_mat", "geo_junctions_mat"], + layers: ["geo_pipes_mat", "geo_junctions_mat", "geo_valves"], wfsVersion: "1.0.0", outputFormat: "application/json", } as const; @@ -460,7 +460,11 @@ const handleMapClickSelectFeatures = async ( // 按几何类型优先级排序:点 > 线 > 其他 const { points, lines, others } = classifyFeaturesByGeometry(allSelectedFeatures); - const prioritizedFeatures = [...points, ...lines, ...others]; + const prioritizedFeatures = [ + ...points.reverse(), + ...lines.reverse(), + ...others.reverse(), + ]; // 获取第一个要素 const firstFeature = prioritizedFeatures[0];