release: 2026-04-01 (229건 커밋) #156

병합
jhkang develop 에서 main 로 3 commits 를 머지했습니다 2026-04-01 19:15:01 +09:00
Showing only changes of commit 08bcfbf24d - Show all commits

파일 보기

@ -137,14 +137,21 @@ export function S57EncOverlay({ visible }: S57EncOverlayProps) {
if (!map) return;
if (visible) {
addEncLayers(map);
const doAdd = () => addEncLayers(map);
if (map.isStyleLoaded()) {
doAdd();
} else {
map.once('style.load', doAdd);
}
return () => {
map.off('style.load', doAdd);
removeEncLayers(map);
};
} else {
removeEncLayers(map);
}
return () => {
if (map) removeEncLayers(map);
};
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [visible, mapRef]);