필요없는 코드 삭제

This commit is contained in:
leedj312
2025-08-11 16:25:43 +09:00
parent 7d137c93c5
commit 06c840951b
+5 -18
View File
@@ -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)
}