From 1e2642d667480fc381f22e1bf25a4df1ff7b58d0 Mon Sep 17 00:00:00 2001
From: Yasutake Yohei <61961825+yasutakeyohei@users.noreply.github.com>
Date: Mon, 26 Oct 2026 22:47:29 +0900
Subject: parks: 消火栓・防火水槽の反映とUI修正
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
消防水利データと公園ポリゴンを突合し、防災用具に防火水槽・消火栓の数を反映。地図に「槽」「消」バッジと凡例を追加した。
フィルタの上下ずれ、段落の字下げ、砂場アイコン、11公園のGoogleマップリンクも修正。
---
src/components/ParkMap.astro | 21 +++++++++++++++++++++
1 file changed, 21 insertions(+)
(limited to 'src/components/ParkMap.astro')
diff --git a/src/components/ParkMap.astro b/src/components/ParkMap.astro
index b96992d..6a753f0 100644
--- a/src/components/ParkMap.astro
+++ b/src/components/ParkMap.astro
@@ -237,6 +237,16 @@
border-radius: 50%;
color: #1b1b1b;
}
+ :global(.park-fac-tank) {
+ background: #1565c0;
+ border: 1px solid #0d47a1;
+ border-radius: 5px;
+ }
+ :global(.park-fac-hydrant) {
+ background: #c62828;
+ border: 1px solid #8e0000;
+ border-radius: 50%;
+ }
:global(.park-fac svg) {
display: block;
}
@@ -776,6 +786,17 @@
'⏰',
);
}
+ const disaster = p["防災用具"] || "";
+ if (/防火水槽[x×]\d+/.test(disaster)) {
+ icons.push(
+ '槽',
+ );
+ }
+ if (/消火栓[x×]\d+/.test(disaster)) {
+ icons.push(
+ '消',
+ );
+ }
if (!icons.length) return;
const center = lyr.getBounds().getCenter();
L.marker([center.lat, center.lng], {
--
cgit v1.3.1