From 06c840951b40e7b95643d583bada36422161503b Mon Sep 17 00:00:00 2001 From: leedj312 Date: Mon, 11 Aug 2025 16:25:43 +0900 Subject: [PATCH] =?UTF-8?q?=ED=95=84=EC=9A=94=EC=97=86=EB=8A=94=20?= =?UTF-8?q?=EC=BD=94=EB=93=9C=20=EC=82=AD=EC=A0=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/wr/app/(map-layout)/map/mainMap/page.tsx | 23 ++++--------------- 1 file changed, 5 insertions(+), 18 deletions(-) diff --git a/apps/wr/app/(map-layout)/map/mainMap/page.tsx b/apps/wr/app/(map-layout)/map/mainMap/page.tsx index 6240c1fe8..87e762b43 100644 --- a/apps/wr/app/(map-layout)/map/mainMap/page.tsx +++ b/apps/wr/app/(map-layout)/map/mainMap/page.tsx @@ -154,8 +154,12 @@ const Map = () => { setIsOpen(true); setIsSearchModalOpen(false); - if (popUpClick ){ + if (popUpClick && !( + Object.keys(foundFeature?.getProperties()).length === 0 && + foundFeature.constructor === Object + )){ const layerName = getWrLayerNm(data); + const isColumn = getFeatureCd(foundFeature.getProperties(), String(layerName)); if(layerName&&isColumn) featurePopUpOpen(layerName,isColumn,popupDetailRef) @@ -199,23 +203,6 @@ const Map = () => { const layerNm = getSelectedLayers(isFeature,gisMaps); const safeProps = isFeature.getProperties(); const featureCd = getFeatureCd(safeProps, String(layerNm)); - // const url = `/mapFeaturePopup?layerNm=${encodeURIComponent(String(layerNm))}&featureCd=${encodeURIComponent(featureCd)} `; - // const width = - // String(layerNm) === "하수재이용시설" - // ? Math.floor(window.innerWidth * 0.8) - // : Math.floor(window.innerWidth * 0.4); // 화면 폭의 40% - // const height = - // String(layerNm) === "하수재이용시설" - // ? Math.floor(window.innerHeight - 150) - // : Math.floor(window.innerHeight - 450); // 150px 여백 확보; // calc(100% - 70px) - // const left = (window.screen.availWidth - width) / 2; - // const top = (window.screen.availHeight - height) / 2; - // const popupOptions = `width=${width},height=${height},left=${left},top=${top},resizable=yes,scrollbars=yes`; - // popupDetailRef.current = window.open( - // url, - // "지도 시설 상세정보 팝업", - // popupOptions - // ); if(layerNm) featurePopUpOpen(layerNm,featureCd,popupDetailRef) }