From 6f850786991f3d02fffa467f8981e9f98d4ca324 Mon Sep 17 00:00:00 2001 From: leedj312 Date: Thu, 7 Aug 2025 09:48:46 +0900 Subject: [PATCH] =?UTF-8?q?=EC=9E=98=EB=AA=BB=EB=90=9C=20=ED=8C=8C?= =?UTF-8?q?=EC=9D=BC=EB=AA=85=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/wr/components/lib/func/mapUtil.ts | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 apps/wr/components/lib/func/mapUtil.ts diff --git a/apps/wr/components/lib/func/mapUtil.ts b/apps/wr/components/lib/func/mapUtil.ts new file mode 100644 index 000000000..f3925c413 --- /dev/null +++ b/apps/wr/components/lib/func/mapUtil.ts @@ -0,0 +1,21 @@ + + + + export const getFeatureCd = (featurePropertise:any, layerNm:string) => { + console.log('layerNm ', layerNm ) + console.log('featurePropertise ', featurePropertise ) + + const featureCd = + layerNm === "하수재이용시설" + ? featurePropertise?.swtrmt_fclt_cd + : ["빗물이용시설", "중수도시설", "온배수시설", "수요처" ,'잠재수요처'].includes( + layerNm + ) + ? featurePropertise?.bdst_nm + : layerNm === "하수처리시설" + ? featurePropertise?.swtrmt_fclt_nm + : null; + + console.log('featureCd ', featureCd) + return featureCd; + }; \ No newline at end of file