aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/components/ParkMap.astro
diff options
context:
space:
mode:
authorYasutake Yohei <61961825+yasutakeyohei@users.noreply.github.com>2026-11-03 23:51:31 +0900
committerYasutake Yohei <61961825+yasutakeyohei@users.noreply.github.com>2026-11-03 23:51:31 +0900
commit80b0b267053b3f3b19ddc04f69ac25c706c5db11 (patch)
treefa578fcdf896860622221ebbfd3e3c17b57e386f /src/components/ParkMap.astro
parent88ad75586ef095e4e30aa4eb914940db19764a6c (diff)
parks: 未確認の公園を絞り込み・表示できるように
「未確認のみ」フィルタ、名称横の「未確認」バッジ、地図上の「?」バッジと凡例を追加した。
Diffstat (limited to 'src/components/ParkMap.astro')
-rw-r--r--src/components/ParkMap.astro10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/components/ParkMap.astro b/src/components/ParkMap.astro
index 1a70ce2..3cccc7c 100644
--- a/src/components/ParkMap.astro
+++ b/src/components/ParkMap.astro
@@ -267,6 +267,11 @@
border: 1px solid #8e0000;
border-radius: 50%;
}
+ :global(.park-fac-unconfirmed) {
+ background: #616161;
+ border: 1px solid #212121;
+ border-radius: 50%;
+ }
:global(.park-fac svg) {
display: block;
}
@@ -935,6 +940,11 @@
'<span class="park-fac park-fac-hydrant" title="消火栓あり" aria-label="消火栓あり">消</span>',
);
}
+ if ((p["備考"] || "").includes("未確認")) {
+ icons.push(
+ '<span class="park-fac park-fac-unconfirmed" title="情報未確認" aria-label="情報未確認">?</span>',
+ );
+ }
if (!icons.length) return;
const center = centerOfLayer(lyr);
L.marker([center.lat, center.lng], {