diff options
| author | Yasutake Yohei <61961825+yasutakeyohei@users.noreply.github.com> | 2026-10-26 22:47:29 +0900 |
|---|---|---|
| committer | Yasutake Yohei <61961825+yasutakeyohei@users.noreply.github.com> | 2026-10-26 22:47:29 +0900 |
| commit | 1e2642d667480fc381f22e1bf25a4df1ff7b58d0 (patch) | |
| tree | f4580c49351d083b3f9c1320968e549ef5313407 /src/components/ParkMap.astro | |
| parent | cdb4fa36a8b4230425f3d5bf001d73a8b467450b (diff) | |
parks: 消火栓・防火水槽の反映とUI修正
消防水利データと公園ポリゴンを突合し、防災用具に防火水槽・消火栓の数を反映。地図に「槽」「消」バッジと凡例を追加した。
フィルタの上下ずれ、段落の字下げ、砂場アイコン、11公園のGoogleマップリンクも修正。
Diffstat (limited to 'src/components/ParkMap.astro')
| -rw-r--r-- | src/components/ParkMap.astro | 21 |
1 files changed, 21 insertions, 0 deletions
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 @@ '<span class="park-fac park-fac-clock" title="時計あり" aria-label="時計あり">⏰</span>', ); } + const disaster = p["防災用具"] || ""; + if (/防火水槽[x×]\d+/.test(disaster)) { + icons.push( + '<span class="park-fac park-fac-tank" title="防火水槽あり" aria-label="防火水槽あり">槽</span>', + ); + } + if (/消火栓[x×]\d+/.test(disaster)) { + icons.push( + '<span class="park-fac park-fac-hydrant" title="消火栓あり" aria-label="消火栓あり">消</span>', + ); + } if (!icons.length) return; const center = lyr.getBounds().getCenter(); L.marker([center.lat, center.lng], { |
