diff --git a/docs/RELEASE-NOTES.md b/docs/RELEASE-NOTES.md index d87f4ec..0c83840 100644 --- a/docs/RELEASE-NOTES.md +++ b/docs/RELEASE-NOTES.md @@ -4,23 +4,22 @@ ## [Unreleased] -## [2026-03-31.2] +## [2026-04-01] + +### 수정 +- 지도: S57EncOverlay API URL을 공유 API_BASE_URL로 통합 + +## [2026-03-31] ### 추가 - 지도: S-57 전자해도(ENC) 오버레이 레이어 추가 - 지도: 전체 탭 지도 배경 토글 통합 (S-57/3D/밝은테마/기본지도) - 공통: useBaseMapStyle 훅 및 mapStyles 공유 모듈 추가 - -### 변경 -- 지도: 초기 접속 시 기본지도(CartoDB Dark Matter) 표시로 변경 (S-57 기본 off) - -## [2026-03-31] - -### 추가 - 다크/라이트 테마 전환 기능 (TopBar 퀵메뉴에서 토글) - themeStore (Zustand) 테마 상태 관리 + localStorage 영속화 ### 변경 +- 지도: 초기 접속 시 기본지도(CartoDB Dark Matter) 표시로 변경 (S-57 기본 off) - 디자인 시스템 토큰 시맨틱 네이밍 전환 (하드코딩 색상 → CSS 변수) - PretendardGOV 폰트 적용 - 라이트 테마 CSS 변수 오버라이드 및 컴포넌트별 스타일 대응 diff --git a/frontend/src/common/components/map/S57EncOverlay.tsx b/frontend/src/common/components/map/S57EncOverlay.tsx index 2408037..9211754 100644 --- a/frontend/src/common/components/map/S57EncOverlay.tsx +++ b/frontend/src/common/components/map/S57EncOverlay.tsx @@ -1,8 +1,8 @@ import { useEffect, useRef } from 'react'; import { useMap } from '@vis.gl/react-maplibre'; +import { API_BASE_URL } from '../../services/api'; -const TILES_BASE = import.meta.env.VITE_API_URL?.replace(/\/api$/, '') || 'http://localhost:3001'; -const PROXY_PREFIX = `${TILES_BASE}/api/tiles/enc`; +const PROXY_PREFIX = `${API_BASE_URL}/tiles/enc`; const ENC_SPRITE_ID = 'enc-s57'; const ENC_SOURCE_ID = 'enc-s57';