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