From 79b038657a05a92640a2c4de7f23db38b7100bc8 Mon Sep 17 00:00:00 2001 From: swcho Date: Fri, 1 Aug 2025 17:50:59 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20json=20=EB=8D=B0=EC=9D=B4=ED=84=B0=20fi?= =?UTF-8?q?d=20->=20fcltMngNo=EB=A1=9C=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../map/components/popupComponent/featureClickEventPopup.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/apps/sn/app/(map-layout)/map/components/popupComponent/featureClickEventPopup.tsx b/apps/sn/app/(map-layout)/map/components/popupComponent/featureClickEventPopup.tsx index 26bf2191b..f50595c10 100644 --- a/apps/sn/app/(map-layout)/map/components/popupComponent/featureClickEventPopup.tsx +++ b/apps/sn/app/(map-layout)/map/components/popupComponent/featureClickEventPopup.tsx @@ -39,12 +39,10 @@ const FeatureClickEventPopup = ({ onClose, featureData }: { onClose: () => void, // ๐ŸŽฏ ๊ด€๋กœ๊ด€๋ฆฌ๋ฒˆํ˜ธ ์ถ”์ถœ const pplMngNo = featureData?.values_?.fclt_mng_no || ""; - // const featureId = featureData.getId(); // ํ”ผ์ฒ˜์˜ id ๊ฐ€์ ธ์˜ค๊ธฐ const featureId = typeof featureData.getId === 'function' ? featureData.getId() : featureData.fid; - console.log('featureId', featureId); // ๐ŸŽฏ ๋ฐ์ดํ„ฐ ์ „์ฒ˜๋ฆฌ ๋ฉ”๋ชจ์ด์ œ์ด์…˜ const processedData = useMemo(() => { @@ -355,7 +353,7 @@ const FeatureClickEventPopup = ({ onClose, featureData }: { onClose: () => void, else if (layerNm === 'ํ•˜์ˆ˜ํŽŒํ”„์žฅ') apiEndpoint = 'v1/fcltpump'; else if (layerNm === 'ํ•˜์ˆ˜๋งจํ™€') apiEndpoint = 'v1/fcltmhl'; - bodyData['fid'] = featureId.toString().split('.').pop() || null; + bodyData['fcltMngNo'] = featureData.values_.fclt_mng_no.toString() || null; // ๋นˆ ํ‚ค ์ œ๊ฑฐ if (bodyData[""] !== undefined) delete bodyData[""];