feat(D03 지도 겹): 산사태위험 범례 「산사태 n등급」 이름 붙임 · 검증 창구 layers().zoom(GL 줌) 덧 (PLAN 622-2)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-31 20:01:57 +09:00
co-authored by Claude Opus 5.5
parent 31c8279d2c
commit a19425e721
2 changed files with 4 additions and 1 deletions
@@ -166,7 +166,7 @@ export const ZONE_COLORS: Record<string, string> = {
};
/** 산사태위험지도 범례(1 등급 = 가장 위험 · 색 = WMS 그림 색). */
export const LANDSLIDE_LEGEND: LegendItem[] = [1, 2, 3, 4, 5].map((grade) => ({
label: `${grade}등급`,
label: `산사태 ${grade}등급`,
color: `var(--draw-map-landslide-grade-${grade})`,
}));
/** 선 겹 — 이름 · 그림 꼴(서버 `LINE_KINDS` 열쇠 = `kind` · 없으면 0차곡). 새 선 겹 = 여기 한 줄. */
@@ -121,6 +121,8 @@ export interface PlanLayers {
counts: Record<string, number>;
/** GL 겹마다 화면에 그린 지물 수(보임만 · GL 끔 = 빈 것). */
gl: Record<string, number>;
/** GL 줌(GL 끔 = null · 622-2 검증). */
zoom: number | null;
/** 겹이 받은 범위(마지막 `load` 값) · 차례 번호(475 검증). */
area: [number, number, number, number] | null;
turn: number;
@@ -672,6 +674,7 @@ export function createPlanLayers(opts: {
: gl.map()!.queryRenderedFeatures({ layers: [layer.id] }).length,
]),
),
zoom: gl.map()?.getZoom() ?? null,
area,
turn: areaTurn,
tiles: tiles.state(),