From 0284c24685eb75f4472f96a90c928769997e4e6c Mon Sep 17 00:00:00 2001 From: Akihiro MATOBA Date: Tue, 9 Jan 2024 23:56:15 +0900 Subject: [PATCH] follow the foldername of noto water supply kml --- assets/config/2024-noto-earthquake.json | 2 +- components/PrintableMap.vue | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/assets/config/2024-noto-earthquake.json b/assets/config/2024-noto-earthquake.json index ceb6b309..ab85d876 100644 --- a/assets/config/2024-noto-earthquake.json +++ b/assets/config/2024-noto-earthquake.json @@ -83,7 +83,7 @@ "icon_class": "fas fa-plug", "class": "layer_charger" }, - "能登半島地震 給水": { + "能登半島地震 給水_石川・富山": { "name": "給水所", "name_en": "Water Supply", "color": "#285797", diff --git a/components/PrintableMap.vue b/components/PrintableMap.vue index 0fed5a0b..d211e3cf 100644 --- a/components/PrintableMap.vue +++ b/components/PrintableMap.vue @@ -114,8 +114,8 @@ div :class='{show: isDisplayAllCategory || activeCategory === getMarkerCategoryText(group.category, $i18n.locale)}' ) h2.list-title( - :style="{backgroundColor:mapConfig.layer_settings[group.category]?.color}" - ) + :style="{backgroundColor:mapConfig.layer_settings[group.category]?.color||group.markers[0]?.feature?.properties['marker-color']||'darkgreen'}" + ) span.list-title-mark i( :class="mapConfig.layer_settings[group.category]?.icon_class"