diff --git a/D03_PlanAnalysis/D03_PlanAnalysis_UI_Guide.ts b/D03_PlanAnalysis/D03_PlanAnalysis_UI_Guide.ts index 7aa77d217..d7202aabb 100644 --- a/D03_PlanAnalysis/D03_PlanAnalysis_UI_Guide.ts +++ b/D03_PlanAnalysis/D03_PlanAnalysis_UI_Guide.ts @@ -148,7 +148,9 @@ export function createPlanGuide(opts: { const s = summary(); const [x, y] = map.toScreen(end); const text = `가이드 ${(s.lengthM / 1000).toFixed(2)} km · 최대 ${s.maxGradePct.toFixed(1)} % · 급경사 지남 ${s.steepPct.toFixed(0)} %`; - planLabel(context, map, x, y - 22, text, "bold 12px"); + // 끝 지점 핀 아래 · 화면 오른쪽 반이면 오른쪽 맞춤(지점 이름 · 화면 끝에 안 걸림) + const right = x > context.canvas.clientWidth / 2; + planLabel(context, map, x, y + 16, text, "bold 12px", right ? "right" : "left"); }, };