From 1b2f8c65c63755e95946997456596fbd68fb1978 Mon Sep 17 00:00:00 2001 From: htlee Date: Fri, 20 Mar 2026 15:16:51 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EB=B6=84=EC=84=9D=20=EC=98=A4=EB=B2=84?= =?UTF-8?q?=EB=A0=88=EC=9D=B4=20=EB=9D=BC=EC=9D=B4=EB=B8=8C=20=EC=84=A0?= =?UTF-8?q?=EB=B0=95=20=EC=9C=84=EC=B9=98=20=EC=82=AC=EC=9A=A9=20=E2=80=94?= =?UTF-8?q?=20allShips=20prop=20=EC=A0=84=EB=8B=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - KoreaMap에 allShips(전체 라이브 선박) prop 추가 - AnalysisOverlay: allShips 기반으로 분석 대상 매칭 (필터링 무관) - 불법어선 마커: allShips에서 라이브 위치 참조 (위치 갭 해소) Co-Authored-By: Claude Opus 4.6 (1M context) --- frontend/src/App.tsx | 1 + frontend/src/components/korea/KoreaMap.tsx | 9 +++++---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index e73a25f..ca797f4 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -555,6 +555,7 @@ function AuthenticatedApp({ user, onLogout }: AuthenticatedAppProps) {
; @@ -128,7 +129,7 @@ const FILTER_I18N_KEY: Record = { ferryWatch: 'filters.ferryWatchMonitor', }; -export function KoreaMap({ ships, aircraft, satellites, layers, osintFeed, currentTime, koreaFilters, transshipSuspects, cableWatchSuspects, dokdoWatchSuspects, dokdoAlerts, vesselAnalysis }: Props) { +export function KoreaMap({ ships, allShips, aircraft, satellites, layers, osintFeed, currentTime, koreaFilters, transshipSuspects, cableWatchSuspects, dokdoWatchSuspects, dokdoAlerts, vesselAnalysis }: Props) { const { t } = useTranslation(); const mapRef = useRef(null); const [infra, setInfra] = useState([]); @@ -208,8 +209,8 @@ export function KoreaMap({ ships, aircraft, satellites, layers, osintFeed, curre {layers.ships && } - {/* Illegal fishing vessel markers */} - {koreaFilters.illegalFishing && ships.filter(s => { + {/* Illegal fishing vessel markers — allShips(라이브 위치) 기반 */} + {koreaFilters.illegalFishing && (allShips ?? ships).filter(s => { const mtCat = getMarineTrafficCategory(s.typecode, s.category); if (mtCat !== 'fishing' || s.flag === 'KR') return false; return classifyFishingZone(s.lat, s.lng).zone !== 'OUTSIDE'; @@ -303,7 +304,7 @@ export function KoreaMap({ ships, aircraft, satellites, layers, osintFeed, curre {layers.cnFishing && } {vesselAnalysis && vesselAnalysis.analysisMap.size > 0 && (