release: 2026-03-31 (39건 커밋) #210
@ -201,10 +201,10 @@ const FILTER_I18N_KEY: Record<string, string> = {
|
||||
cnFishing: 'filters.cnFishingMonitor',
|
||||
};
|
||||
|
||||
// [DEBUG] 좌표 디버그 — DEV에서만 동적 로드, 프로덕션 번들에서 완전 제거
|
||||
// [DEBUG] 개발용 도구 — DEV에서만 동적 로드, 프로덕션 번들에서 완전 제거
|
||||
import { lazy, Suspense } from 'react';
|
||||
const DevCoordDebug = import.meta.env.DEV
|
||||
? lazy(() => import('./debug/DevCoordDebug'))
|
||||
const DebugTools = import.meta.env.DEV
|
||||
? lazy(() => import('./debug'))
|
||||
: null;
|
||||
|
||||
export function KoreaMap({ ships, allShips, aircraft, satellites, layers, osintFeed, currentTime, koreaFilters, transshipSuspects, cableWatchSuspects, dokdoWatchSuspects, dokdoAlerts, vesselAnalysis, groupPolygons, hiddenShipCategories, hiddenNationalities, externalFlyTo, onExternalFlyToDone, opsRoute }: Props) {
|
||||
@ -615,8 +615,8 @@ export function KoreaMap({ ships, allShips, aircraft, satellites, layers, osintF
|
||||
>
|
||||
<NavigationControl position="top-right" />
|
||||
|
||||
{/* [DEBUG] Ctrl+Click 좌표 표시 — 프로덕션 번들에서 완전 제거 */}
|
||||
{DevCoordDebug && <Suspense><DevCoordDebug mapRef={mapRef} /></Suspense>}
|
||||
{/* [DEBUG] 개발용 도구 — 프로덕션 번들에서 완전 제거 */}
|
||||
{DebugTools && <Suspense><DebugTools mapRef={mapRef} /></Suspense>}
|
||||
|
||||
<Source id="country-labels" type="geojson" data={countryLabelsGeoJSON()}>
|
||||
<Layer
|
||||
|
||||
24
frontend/src/components/korea/debug/index.tsx
Normal file
24
frontend/src/components/korea/debug/index.tsx
Normal file
@ -0,0 +1,24 @@
|
||||
/**
|
||||
* [DEBUG] 디버그 도구 허브 — 모든 개발용 도구를 조합하여 export
|
||||
*
|
||||
* 디버그 도구 추가/제거 시 이 파일만 수정하면 됨.
|
||||
* KoreaMap에서는 이 파일만 lazy import.
|
||||
* 프로덕션 빌드에서 이 파일과 하위 도구 전체가 번들에서 제거됨.
|
||||
*/
|
||||
import type { MapRef } from 'react-map-gl/maplibre';
|
||||
import DevCoordDebug from './DevCoordDebug';
|
||||
|
||||
interface Props {
|
||||
mapRef: React.RefObject<MapRef | null>;
|
||||
}
|
||||
|
||||
export default function DebugTools({ mapRef }: Props) {
|
||||
return (
|
||||
<>
|
||||
<DevCoordDebug mapRef={mapRef} />
|
||||
{/* 디버그 도구 추가 시 여기에 한 줄 추가 */}
|
||||
{/* <DevZoneOverlay mapRef={mapRef} /> */}
|
||||
{/* <DevPerformance mapRef={mapRef} /> */}
|
||||
</>
|
||||
);
|
||||
}
|
||||
불러오는 중...
Reference in New Issue
Block a user