From a474cf6d1d10042db539a3eed711a3da7ff02c6e Mon Sep 17 00:00:00 2001 From: "jeonghyo.k" Date: Wed, 1 Apr 2026 08:55:26 +0900 Subject: [PATCH] =?UTF-8?q?fix(map):=20S57=20ENC=20sprite=20URL=EC=97=90?= =?UTF-8?q?=20origin=20=ED=94=84=EB=A6=AC=ED=94=BD=EC=8A=A4=20=EC=B6=94?= =?UTF-8?q?=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.6 (1M context) --- frontend/src/common/components/map/S57EncOverlay.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/frontend/src/common/components/map/S57EncOverlay.tsx b/frontend/src/common/components/map/S57EncOverlay.tsx index 9211754..4384d45 100644 --- a/frontend/src/common/components/map/S57EncOverlay.tsx +++ b/frontend/src/common/components/map/S57EncOverlay.tsx @@ -158,7 +158,10 @@ export function S57EncOverlay({ visible }: S57EncOverlayProps) { // sprite 등록 (중복 방지) if (!hasSprite(map, ENC_SPRITE_ID)) { - map.addSprite(ENC_SPRITE_ID, `${PROXY_PREFIX}/sprite/sprite`); + const spriteUrl = PROXY_PREFIX.startsWith('http') + ? `${PROXY_PREFIX}/sprite/sprite` + : `${window.location.origin}${PROXY_PREFIX}/sprite/sprite`; + map.addSprite(ENC_SPRITE_ID, spriteUrl); } // sources 등록 (타일 URL을 프록시로 치환)