From bae1df8dd99c26d5a74dd6dbc63d24aa0ab8f441 Mon Sep 17 00:00:00 2001 From: Yasutake Yohei <61961825+yasutakeyohei@users.noreply.github.com> Date: Sun, 1 Nov 2026 18:57:48 +0900 Subject: hp-archive: 会場の地図を追加し、公園マップを非公開に MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - カレンダーで選んだ日の会場を地図に表示(市境・現在地ボタン付き) - 会場の座標データを追加し、1つの予定を複数会場に表示できるようにした - マナーアップキャンペーンと筋力アップ講座を日付・曜日ごとの行に分割 - こだいら公園さんぽマップを draft にして非公開にした --- src/components/ScheduleInteractive.astro | 13 ++ src/components/ScheduleMap.astro | 386 +++++++++++++++++++++++++++++++ 2 files changed, 399 insertions(+) create mode 100644 src/components/ScheduleMap.astro (limited to 'src/components') diff --git a/src/components/ScheduleInteractive.astro b/src/components/ScheduleInteractive.astro index 955977d..3295125 100644 --- a/src/components/ScheduleInteractive.astro +++ b/src/components/ScheduleInteractive.astro @@ -354,6 +354,19 @@ }); const title = `${date.getMonth() + 1}月${date.getDate()}日(${weekday})の予定`; + // 会場の地図(ScheduleMap)に、その日の予定を知らせる。 + const detail = { + date: key, + entries: list.map((e) => ({ + name: e.name, + time: e.time, + category: e.category, + rowId: e.rowId, + })), + }; + (window as any).__scheduleDay = detail; + document.dispatchEvent(new CustomEvent('schedule:day', { detail })); + if (list.length === 0) { detailsEl.innerHTML = `
この日の予定はありません。
`; return; diff --git a/src/components/ScheduleMap.astro b/src/components/ScheduleMap.astro new file mode 100644 index 0000000..bf84dd7 --- /dev/null +++ b/src/components/ScheduleMap.astro @@ -0,0 +1,386 @@ +--- +// カレンダーで選んだ日に開催される予定の会場を地図に表示する。 +// 会場名から緯度・経度を引くため、公共施設のデータと、イベント会場の追加データを使う。 +--- + +