diff --git a/frontend/src/b/FirstSnowPage.tsx b/frontend/src/b/FirstSnowPage.tsx index c6e4ecc..d721f12 100644 --- a/frontend/src/b/FirstSnowPage.tsx +++ b/frontend/src/b/FirstSnowPage.tsx @@ -14,6 +14,8 @@ const DOT_R = 4 // 눈 예보도 없고 대표 지점도 아닌 곳의 이름이 나오기 시작하는 배율(처음 화면 대비): 처음엔 차분하게 const LABEL_FROM = 2.2 const TAP_R = 24 +// 처음 화면에서 − 를 한 번 더 누를 수 있다: 울릉도·독도까지 전체가 보인다 +const MIN_ZOOM = 1 / 1.6 const SHARE_ICON = 'relative grid size-9 shrink-0 cursor-pointer place-items-center rounded-full [&_svg]:size-[19px] [&_svg]:fill-none [&_svg]:stroke-(--ink2) [&_svg]:stroke-[1.9]' const SHARE_BTN = `${SHARE_ICON} bg-white/80` const GROUPS: [SnowStage, string][] = [ @@ -72,7 +74,7 @@ export function FirstSnowPage() { } setSel((cur) => (best && best !== cur ? best : null)) }, []) - const { box, view, fit, zoomAt, focus } = useMapView(vpRef, spots, params.get('spot'), pickAt) + const { box, view, fit, zoomAt, focus } = useMapView(vpRef, spots, params.get('spot'), pickAt, MIN_ZOOM) const pts = useMemo( () => spread(spots.map((m) => ({ m, x: view.tx + m.x * box.W * view.s, y: view.ty + m.y * box.W * view.s, r: m.stage === 'soon' ? ICON_R : DOT_R }))), diff --git a/frontend/src/b/SunrisePage.tsx b/frontend/src/b/SunrisePage.tsx index 04f16dc..03ab84b 100644 --- a/frontend/src/b/SunrisePage.tsx +++ b/frontend/src/b/SunrisePage.tsx @@ -5,7 +5,7 @@ import { ICON_R, LABEL, MAP_SRC, PROVINCE, PROVINCES, labelBoxes, md, placeLabel import { useMapView } from './mapView' import { useSheet } from './sheetContext' import { SunriseMapShare, SunriseSpotShare } from './shareCards' -import { clock, COAST, direction, dokdoRise, SUN_DOT, SUN_LABEL_INK, SUN_MAP_IMG, SUN_SHADOW, sunriseHeadline, useSunrise, type Coast, type SunSpot } from './sunrise' +import { clock, COAST, direction, dokdoRise, SUN_DOT, SUN_LABEL_INK, SUN_MAP_IMG, SUN_PAPER, SUN_SHADOW, sunriseHeadline, useSunrise, type Coast, type SunSpot } from './sunrise' import { SendIcon } from './svg' import { Chips, Ic, TAP44 } from './ui' import { track } from '../lib/analytics' @@ -16,6 +16,8 @@ const DOT_R = 4 // 대표 명소가 아닌 곳의 이름이 나오기 시작하는 배율(처음 화면 대비): 처음엔 대표 명소 이름만 보여 차분하게 const LABEL_FROM = 2.2 const TAP_R = 24 +// 처음 화면에서 − 를 한 번 더 누를 수 있다: 울릉도·독도까지 전체가 보인다 +const MIN_ZOOM = 1 / 1.6 const SHARE_ICON = 'relative grid size-9 shrink-0 cursor-pointer place-items-center rounded-full [&_svg]:size-[19px] [&_svg]:fill-none [&_svg]:stroke-(--ink2) [&_svg]:stroke-[1.9]' const SHARE_BTN = `${SHARE_ICON} bg-white/80` const FILTERS: [Filter, string][] = [['all', '전체'], ...(Object.entries(COAST) as [Coast, string][])] @@ -66,7 +68,7 @@ export function SunrisePage() { } setSel((cur) => (best && best !== cur ? best : null)) }, []) - const { box, view, fit, zoomAt, focus } = useMapView(vpRef, spots, params.get('spot'), pickAt) + const { box, view, fit, zoomAt, focus } = useMapView(vpRef, spots, params.get('spot'), pickAt, MIN_ZOOM) const pts = useMemo( () => spread(shown.map((m) => ({ m, x: view.tx + m.x * box.W * view.s, y: view.ty + m.y * box.W * view.s, r: m.top ? ICON_R : DOT_R }))), @@ -135,7 +137,7 @@ export function SunrisePage() { {days.length > 1 && [d.key, `${d.label} ${md(d.date)}`] as const)} value={day.key} onChange={pickDay} />} -
+
해돋이 지도 {provs.map((v) => (