From a6a4d7ccff2d4fd71058dba52f67646e0a83f8c1 Mon Sep 17 00:00:00 2001 From: swcho Date: Mon, 1 Sep 2025 13:12:19 +0900 Subject: [PATCH] =?UTF-8?q?remove:=20=EC=A3=BC=EC=84=9D=20=EC=82=AD?= =?UTF-8?q?=EC=A0=9C=20=EB=B0=8F=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../popupComponent/featureClickEventPopup.tsx | 71 ------------------- .../map/components/popupComponent/smh.tsx | 2 +- 2 files changed, 1 insertion(+), 72 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 45fcfb0d4..8dd107ff6 100644 --- a/apps/sn/app/(map-layout)/map/components/popupComponent/featureClickEventPopup.tsx +++ b/apps/sn/app/(map-layout)/map/components/popupComponent/featureClickEventPopup.tsx @@ -13,7 +13,6 @@ import { useInfilChartModalStore, useRdiiChartModalStore } from "./chartModalSto import { formatDisplayData } from '@/components/lib/utils/formatDisplayValue'; import { codeMapper } from "../common/codeMapper"; import LoadingOverlay from '@/components/ui/LoadingBar'; -// import GisApp from "@common/business_components/ui/map/lib/gis.core"; import { searchUpperPpls } from "./smh"; @@ -385,76 +384,6 @@ const FeatureClickEventPopup = ({ onClose, featureData }: { onClose: () => void, // 레이어명에 따라 상세페이지 렌더링 const ContentComponent = layerNm ? getLayerContentComponent(layerNm) : null; - // const searchUpperPpls = async (fcltMngNo: any) => { - // const BASE_URL = process.env.NEXT_PUBLIC_SEWERAGE_API_URL || ""; - // const res = await fetch(`${BASE_URL}/v1/fcltmhl/upperPpls/${fcltMngNo}`, { - // method: "GET", - // }); - - // let data = null; - // if (res.ok) { - // try { - // // 응답이 비어있는지 확인 - // const contentLength = res.headers.get("content-length"); - // if (contentLength === "0") - // alert(`해당 맨홀의 상류관로를 찾을 수 없습니다.`); - - // // 응답 텍스트를 먼저 가져와서 빈 문자열인지 확인 - // const text = await res.text(); - // if (!text || text.trim() === "") - // alert(`해당 맨홀의 상류관로를 찾을 수 없습니다.`); - - // // JSON 파싱 시도 - // data = JSON.parse(text); - // } catch (error) { - // console.error("JSON parsing error:", error); - // alert(`해당 맨홀의 상류관로를 찾을 수 없습니다.`); - // } - // } - - // const select: any = GisApp.Module.select; - // // const gisMap = GisApp.Module.core?.map; - // let foundFeature: any = null; - - // data.forEach((item: any) => { - // const pplMngNo = item.ppl_mng_no.trim(); - - // gisMap - // .getLayers() - // .getArray() - // .filter((e: any) => e.get("lyrTyNm") == "tb_ms_swage_ppl") - // .forEach((layer: any) => { - // const source = layer.getSource?.(); - // if (source?.getFeatures) { - // const features = source.getFeatures(); - // for (const f of features) { - // if (f.values_.fclt_mng_no.trim() === pplMngNo) { - // foundFeature = f; - // break; - // } - // } - // } - // }); - - // if (foundFeature) select?.selectMultiFeature?.(foundFeature, true); - // }); - - // if (!foundFeature) alert(`해당 맨홀의 상류관로를 찾을 수 없습니다.`); - - // let geometry = foundFeature?.getGeometry(); - // if (geometry) { - // let extent = geometry.getExtent(); - - // gisMap.getView().fit(extent, { - // duration: 300, - // padding: [50, 50, 50, 50], - // maxZoom: 14, - // constrainResolution: true, - // nearest: true, - // }); - // } - // }; - return (