diff options
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], { |
