From 2a0f5dce25764b84a149101e8c4dec4d610e6668 Mon Sep 17 00:00:00 2001 From: swcho Date: Mon, 1 Sep 2025 13:07:46 +0900 Subject: [PATCH 1/2] =?UTF-8?q?remove:=20=EC=83=81=EB=A5=98=EA=B4=80?= =?UTF-8?q?=EB=A1=9C=20=EB=B3=B4=EA=B8=B0=20=ED=95=A8=EC=88=98=20=EC=82=AD?= =?UTF-8?q?=EC=A0=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../business_components/src/ui/map/Gis.js | 69 ------------------- 1 file changed, 69 deletions(-) diff --git a/packages/common/business_components/src/ui/map/Gis.js b/packages/common/business_components/src/ui/map/Gis.js index 6d4d7d15c..de5f8f8bf 100644 --- a/packages/common/business_components/src/ui/map/Gis.js +++ b/packages/common/business_components/src/ui/map/Gis.js @@ -29,75 +29,6 @@ export const GisContext = createContext({ checkedLayerIds: null, }); export const useGisContext = () => useContext(GisContext); -export const searchUpperPpls = async (fcltMngNo) => { - 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 = GisApp.Module.select; - const gisMap = GisApp.Module.core?.map; - let foundFeature = null; - - data.forEach((item) => { - const pplMngNo = item.ppl_mng_no.trim(); - - gisMap - .getLayers() - .getArray() - .filter((e) => e.get("lyrTyNm") == "tb_ms_swage_ppl") - .forEach((layer) => { - 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, - }); - } -}; function Gis({ isOpen, //우측 상세 레이어 팝업 From 01df37d0b3c934dd3f0598f4d5a481dbb1019667 Mon Sep 17 00:00:00 2001 From: jsyang Date: Mon, 1 Sep 2025 17:01:18 +0900 Subject: [PATCH 2/2] =?UTF-8?q?=EB=9D=BC=EC=9D=B8=EC=B0=A8=ED=8A=B8=20?= =?UTF-8?q?=ED=98=B8=EC=B6=9C=20=EC=8B=9C=20config=20color=EC=97=90=20dash?= =?UTF-8?q?=EB=B6=99=EC=9D=84=EC=8B=9C=20=ED=95=B4=EB=8B=B9=EC=83=89?= =?UTF-8?q?=EC=83=81=EC=9D=98=20=EB=8C=80=EC=8B=9C=EB=9D=BC=EC=9D=B8=20?= =?UTF-8?q?=EC=83=9D=EC=84=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../common/business_components/src/ui/chart/LineChart.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/common/business_components/src/ui/chart/LineChart.tsx b/packages/common/business_components/src/ui/chart/LineChart.tsx index fa145b7ed..6fa3c4f64 100644 --- a/packages/common/business_components/src/ui/chart/LineChart.tsx +++ b/packages/common/business_components/src/ui/chart/LineChart.tsx @@ -69,7 +69,7 @@ const CustomTooltip = ({ active, payload, label }: { active?: boolean; payload?:
{/* 색상 박스 추가 (범례 색상과 동일) */}
- {` ${item.name} : ${item.value}`} + {` ${item.name} : ${item.value.toString().replace(',','')}`}
))} @@ -269,7 +269,8 @@ export default function Linechart({ dot={false} connectNulls={true} name={String(config?.label || "X축")} - stroke={config?.color} + stroke={config?.color?.includes('dash')?config?.color?.replace('dash',''):config?.color} + strokeDasharray={config?.color?.includes("dash")?"4 4":undefined} /> ); })}