From 70a77e189a09d180fd42d5f0cdceb7e0cbd903ce Mon Sep 17 00:00:00 2001 From: Yasutake Yohei <61961825+yasutakeyohei@users.noreply.github.com> Date: Sat, 7 Nov 2026 13:17:22 +0900 Subject: kodaira-parks.json: 「テーブル」を「野外卓」に改名し、フィルタとアイコンを更新 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 草地広場フィルタは草地広場のみを対象にし、「野外卓/縁台」を追加 - 市内・周辺公園データと編集画面の「テーブル」を「野外卓」に統一 - じゃぶじゃぶ池を水色の水滴+波紋アイコンに変更 - 野外卓はキャンプテーブル、ペットは犬のアイコンに変更 - フィルタ時に非該当の公園ポリゴンを消さず点滅表示を維持 --- src/components/ParksTable.astro | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) (limited to 'src/components/ParksTable.astro') 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: "🏟" }, -- cgit v1.3.1