diff --git a/D02_PlanBase/D02_PlanBase_UI_Page.ts b/D02_PlanBase/D02_PlanBase_UI_Page.ts index 10821c0a9..6d6d4580d 100644 --- a/D02_PlanBase/D02_PlanBase_UI_Page.ts +++ b/D02_PlanBase/D02_PlanBase_UI_Page.ts @@ -62,7 +62,8 @@ async function request(path: string, init?: RequestInit): Promise { /** 서버 두 점 → [시점, 종점] */ function boundaryPoints(view: PointsView): Array { - const pick = (p: ServerPoint | null): LonLat | null => (p ? { lon: p.lon, lat: p.lat } : null); + const pick = (p: ServerPoint | null): LonLat | null => + p ? { lon: +p.lon.toFixed(DIGITS), lat: +p.lat.toFixed(DIGITS) } : null; return [pick(view.start), pick(view.end)]; }