diff --git a/apps/sn/app/(map-layout)/map/components/common/table.ts b/apps/sn/app/(map-layout)/map/components/common/table.ts index 1a728f540..b8ba17b4f 100644 --- a/apps/sn/app/(map-layout)/map/components/common/table.ts +++ b/apps/sn/app/(map-layout)/map/components/common/table.ts @@ -523,10 +523,10 @@ export const FldngDpthMapCol = [ { id: 'fldng_yr', title: '침수년도' }, { id: 'ctpv_nm', title: '시도명' }, { id: 'sgg_nm', title: '시군구명' }, - { id: 'fldng_dpth', title: '침수깊이' }, - { id: 'fldng_area', title: '침수면적' }, - { id: 'shape_area', title: '형상면적' }, - { id: 'shape_len', title: '형상길이' }, + { id: 'fldng_dpth', title: '침수깊이(m)' }, + { id: 'fldng_area', title: '침수면적(㎡)' }, + // { id: 'shape_area', title: '형상면적(㎡)' }, + // { id: 'shape_len', title: '형상길이' }, ]; export const FldngWtlvMapExcelCol = { 'fldngYr': '침수년도', diff --git a/apps/sn/app/(map-layout)/map/components/fldngHstry/fldngHstryTypes.ts b/apps/sn/app/(map-layout)/map/components/fldngHstry/fldngHstryTypes.ts index a7bb1f9b3..2554eae12 100644 --- a/apps/sn/app/(map-layout)/map/components/fldngHstry/fldngHstryTypes.ts +++ b/apps/sn/app/(map-layout)/map/components/fldngHstry/fldngHstryTypes.ts @@ -6,7 +6,7 @@ export const FLOOD_HISTORY_POPUP_KEY = "fldngHstryPopup"; export const FLDNG_HSTRY_ROW_SELECT_MESSAGE = "SN_FLOOD_HISTORY_ROW_SELECT"; export const FLOOD_HISTORY_LAYER_TYPE = "tb_ms_fldng_wtlv_map"; export const FLOOD_HISTORY_PREVIEW_LAYER_TYPE = "tb_sn_flood_trace_mock"; -export const FLOOD_HISTORY_LAYER_NAME = "침수흔적수위"; +export const FLOOD_HISTORY_LAYER_NAME = "침수흔적위선"; export const FLOOD_HISTORY_AREA_LAYER_ID = "SN_FLOOD_HISTORY_AREA"; export const FLOOD_HISTORY_DEPTH_LAYER_ID = "SN_FLOOD_HISTORY_DEPTH"; export const FLDNG_HSTRY_PAGE_SIZE = 10; 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 e1f29feb0..aa0320652 100644 --- a/apps/sn/app/(map-layout)/map/components/popupComponent/featureClickEventPopup.tsx +++ b/apps/sn/app/(map-layout)/map/components/popupComponent/featureClickEventPopup.tsx @@ -25,6 +25,7 @@ import { getData, postData } from "@/components/lib/api"; import { VerticalTable } from "@/components/ui/verticalTable"; import { useGisContext } from "@common/business_components/ui/map/Gis"; +import GisApp from "@common/business_components/ui/map/lib/gis.core"; import { Button } from "@common/components/ui"; import { useEffect, useRef, useState, useMemo } from "react"; import Style from "ol/style/Style.js"; @@ -64,7 +65,6 @@ import { isInvalidInstallYmd, } from "../agedPipe/agedPipeUtils"; import { openWindowPopup } from "@/features/windowPopup/lib/openWindowPopup"; -import { WINDOW_POPUP_MESSAGE_TYPE } from "@/features/windowPopup/model/types"; import { useAlertStore } from "@/shared/lib"; import { useConfirm } from "@frontend-opensource/use-react-hooks"; import useStore from "@/store/useStore"; @@ -478,7 +478,7 @@ const FeatureClickEventPopup = ({ break; } case "tb_ms_fldng_wtlv_map": { - result = "침수흔적수위"; + result = "침수흔적위선"; setHeadlist(FldngWtlvMapCol); setLayerSpecificNm( normalizeFldngWtlvMapDisplayId( @@ -488,15 +488,10 @@ const FeatureClickEventPopup = ({ break; } case "tb_ms_fldng_dpth_map": { - result = "침수흔적깊이"; + result = "침수흔적심선"; setHeadlist(FldngDpthMapCol); setLayerSpecificNm( - String( - featureData.values_?.data_sn ?? - featureData.data_sn ?? - featureId ?? - "", - ), + String(featureId ?? "").replace(/^tb_ms_fldng_dpth_map\./, ""), ); break; } @@ -564,20 +559,18 @@ const FeatureClickEventPopup = ({ break; } case "tb_ms_fldng_wtlv_map": { - result = "침수흔적수위"; + result = "침수흔적위선"; setHeadlist(FldngWtlvMapCol2); setLayerSpecificNm(normalizeFldngWtlvMapDisplayId(featureData.fid)); break; } case "tb_ms_fldng_dpth_map": { - result = "침수흔적깊이"; + result = "침수흔적심선"; setHeadlist(FldngDpthMapCol); setLayerSpecificNm( - String( - featureData.dataSn ?? - featureData.data_sn ?? - featureData.fid ?? - "", + String(featureData.fid ?? featureId ?? "").replace( + /^tb_ms_fldng_dpth_map\./, + "", ), ); break; @@ -634,14 +627,14 @@ const FeatureClickEventPopup = ({ // 🎯 기본 데이터 포맷팅 const normalizedRegionData = - selectedLayerName === "침수흔적수위" || - selectedLayerName === "침수흔적깊이" + selectedLayerName === "침수흔적위선" || + selectedLayerName === "침수흔적심선" ? withResolvedRegionNames(data) : data; const formattedData = withMngInstName( formatDisplayData(normalizedRegionData), ); - if (selectedLayerName === "침수흔적수위") { + if (selectedLayerName === "침수흔적위선") { const fldngBgngDtm = formatFldngWtlvDateTime( formattedData.bgngYmd ?? formattedData.bgng_ymd ?? @@ -724,7 +717,7 @@ const FeatureClickEventPopup = ({ case "하수처리구역": setButtonChk(false); break; - case "침수흔적수위": + case "침수흔적위선": setButtonChk(false); break; case "우수토실": @@ -854,7 +847,7 @@ const FeatureClickEventPopup = ({ } } - if (selectedLayerName === "침수흔적수위" && featureId) { + if (selectedLayerName === "침수흔적위선" && featureId) { const depthLookupKey = normalizeFldngWtlvMapApiFid(featureId); setFloodDepthRows([]); setSelectedFloodDepthYear(null); @@ -893,6 +886,7 @@ const FeatureClickEventPopup = ({ String(row.fldng_yr ?? row.fldngYr ?? row.yr ?? "").trim(), ) .filter(Boolean); + console.log("depth years:", years); // 최초에는 연도를 선택하지 않고 목록만 표시한다. setSelectedFloodDepthYear(null); } @@ -1098,12 +1092,89 @@ const FeatureClickEventPopup = ({
| {key} | -{String(value ?? "-")} | -
|---|