diff options
| author | Yasutake Yohei <61961825+yasutakeyohei@users.noreply.github.com> | 2026-11-07 13:17:22 +0900 |
|---|---|---|
| committer | Yasutake Yohei <61961825+yasutakeyohei@users.noreply.github.com> | 2026-11-07 13:17:22 +0900 |
| commit | 70a77e189a09d180fd42d5f0cdceb7e0cbd903ce (patch) | |
| tree | c85ff6a140f665b05c738ed9fb3034fab69c4b47 /src/components/ParksTable.astro | |
| parent | 0a0e4ee695b1d93084dc49d810297a3b50d8a5e0 (diff) | |
kodaira-parks.json: 「テーブル」を「野外卓」に改名し、フィルタとアイコンを更新
- 草地広場フィルタは草地広場のみを対象にし、「野外卓/縁台」を追加
- 市内・周辺公園データと編集画面の「テーブル」を「野外卓」に統一
- じゃぶじゃぶ池を水色の水滴+波紋アイコンに変更
- 野外卓はキャンプテーブル、ペットは犬のアイコンに変更
- フィルタ時に非該当の公園ポリゴンを消さず点滅表示を維持
Diffstat (limited to 'src/components/ParksTable.astro')
| -rw-r--r-- | src/components/ParksTable.astro | 19 |
1 files changed, 5 insertions, 14 deletions
diff --git a/src/components/ParksTable.astro b/src/components/ParksTable.astro index f85fea3..4de8515 100644 --- a/src/components/ParksTable.astro +++ b/src/components/ParksTable.astro @@ -162,19 +162,10 @@ function facTokens(p: Park): string { const clock = (p["時計"] || "").trim(); if (clock === "○" || clock === "あり" || clock === "有" || clock === "1") tokens.push("clock"); if (p["南西部指定管理"]) tokens.push("cm"); - // ピクニック広場・芝生広場・テーブルのある公園。 - const picnicText = `${p["公園名"] || ""} ${p["種別"] || ""} ${p["その他設備"] || ""} ${p["備考"] || ""}`; - if ( - (p["テーブル"] || "").trim() || - p["種別"] === "広場" || - p["草地広場"] || - p["多目的広場"] || - picnicText.includes("芝生") || - picnicText.includes("ピクニック") || - picnicText.includes("広場") - ) { - tokens.push("picnic"); - } + // 草地広場がある公園だけを「草地広場」で絞り込む。 + if (p["草地広場"]) tokens.push("picnic"); + // 野外卓・縁台がある公園。 + if ((p["野外卓"] || "").trim()) tokens.push("table"); return tokens.join(" "); } @@ -182,7 +173,7 @@ function facTokens(p: Park): string { // ラベル文字は使わず、アイコンで項目を示す。 const DETAIL_FIELDS: { key: string; icon: string }[] = [ { key: "ベンチ・椅子", icon: "🪑" }, - { key: "テーブル", icon: "🍽" }, + { key: "野外卓", icon: "🍽" }, { key: "シェルター等", icon: "⛱" }, { key: "草地広場", icon: "🌿" }, { key: "多目的広場", icon: "🏟" }, |
