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"