fix: 단풍 지도 — 어린이대공원 추가, 지도 가운데 맞춤, +/− 연타 시 반대로 확대되던 문제

This commit is contained in:
minaChoi committed 2026-10-27 10:48:53 +09:00
1 parent 1bfa224c62
commit f4cb2217ed
4 files changed
+23 -6

No files matched your search

+3 -1
View File
@@ -30,6 +30,8 @@ function stage(peak: string, today: string): Stage {
}
const toXY = (lat: number, lon: number) => ({ x: (MAP.ox + (lon - MAP.lon0) * MAP.k * MAP.s) / MAP.size, y: (MAP.oy + (MAP.lat1 - lat) * MAP.s) / MAP.size })
// 처음 화면 가로 가운데: 명소 가운데(127.9°)로 잡으면 서해 섬까지 든 땅이 왼쪽으로 쏠려 보여 서쪽으로 당김
export const LAND_CX = toXY(36, 127.65).x
// 지도 위 시·도 이름 자리(위경도). 서울·경기는 겹치지 않게 경기를 북쪽으로 조금 올림
export const PROVINCES = (
@@ -50,7 +52,7 @@ export const PROVINCES = (
export const md = (iso: string) => `${Number(iso.slice(5, 7))}/${Number(iso.slice(8, 10))}`
const province = (m: Spot) => m.region.split(' ')[0].split('·')
/** 오늘(한국 시각) 기준 명소 65곳과 단계. 단풍철이 아니면 inSeason 이 false */
/** 오늘(한국 시각) 기준 명소 66곳과 단계. 단풍철이 아니면 inSeason 이 false */
export function useFoliage() {
const [today] = useState(() => {
const t = kst(new Date())