fix(map): 육지색 적용에서 수역/선박 등 커스텀 레이어 제외
zones, ships, pair, fc, fleet, predict, deck-globe 레이어를 applyLandColor에서 제외하여 수역 표시 복원 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
부모
1a3dd82eb4
커밋
d2178a6134
@ -57,6 +57,13 @@ function applyLandColor(map: maplibregl.Map, color: string) {
|
||||
const id = layer.id;
|
||||
if (id.startsWith('bathymetry-')) continue;
|
||||
if (id.startsWith('subcables-')) continue;
|
||||
if (id.startsWith('zones-')) continue;
|
||||
if (id.startsWith('ships-')) continue;
|
||||
if (id.startsWith('pair-')) continue;
|
||||
if (id.startsWith('fc-')) continue;
|
||||
if (id.startsWith('fleet-')) continue;
|
||||
if (id.startsWith('predict-')) continue;
|
||||
if (id === 'deck-globe') continue;
|
||||
const sourceLayer = String((layer as Record<string, unknown>)['source-layer'] ?? '');
|
||||
const isWater = waterRegex.test(id) || waterRegex.test(sourceLayer);
|
||||
if (isWater) continue;
|
||||
|
||||
불러오는 중...
Reference in New Issue
Block a user