fix(map): S57 ENC sprite URL에 origin 프리픽스 추가
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
부모
7d2a889e11
커밋
a474cf6d1d
@ -158,7 +158,10 @@ export function S57EncOverlay({ visible }: S57EncOverlayProps) {
|
|||||||
|
|
||||||
// sprite 등록 (중복 방지)
|
// sprite 등록 (중복 방지)
|
||||||
if (!hasSprite(map, ENC_SPRITE_ID)) {
|
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을 프록시로 치환)
|
// sources 등록 (타일 URL을 프록시로 치환)
|
||||||
|
|||||||
불러오는 중...
Reference in New Issue
Block a user