Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

prevent no categoryLayers traversal, add antarctic wildfires config

Ed Plato2ecc1de8b60e
diff --git a/config/default/common/config/wv.json/naturalEvents.json b/config/default/common/config/wv.json/naturalEvents.json
index 24241c418..58cab4477 100644
--- a/config/default/common/config/wv.json/naturalEvents.json
+++ b/config/default/common/config/wv.json/naturalEvents.json
@@ -827,6 +827,88 @@
]
},
"antarctic": {
+ "Wildfires": [
+ [
+ "MODIS_Terra_CorrectedReflectance_TrueColor",
+ true
+ ],
+ [
+ "MODIS_Terra_CorrectedReflectance_Bands721",
+ false
+ ],
+ [
+ "VIIRS_NOAA20_CorrectedReflectance_TrueColor",
+ false
+ ],
+ [
+ "VIIRS_NOAA20_CorrectedReflectance_BandsM11-I2-I1",
+ false
+ ],
+ [
+ "MODIS_Aqua_CorrectedReflectance_TrueColor",
+ false
+ ],
+ [
+ "MODIS_Aqua_CorrectedReflectance_Bands721",
+ false
+ ],
+ [
+ "VIIRS_SNPP_CorrectedReflectance_TrueColor",
+ false
+ ],
+ [
+ "VIIRS_SNPP_CorrectedReflectance_BandsM11-I2-I1",
+ false
+ ],
+ [
+ "VIIRS_SNPP_DayNightBand_At_Sensor_Radiance",
+ false
+ ],
+ [
+ "VIIRS_SNPP_DayNightBand_ENCC",
+ false
+ ],
+ [
+ "MODIS_Terra_Thermal_Anomalies_Day",
+ true
+ ],
+ [
+ "MODIS_Terra_Thermal_Anomalies_Night",
+ true
+ ],
+ [
+ "VIIRS_NOAA20_Thermal_Anomalies_375m_Day",
+ false
+ ],
+ [
+ "VIIRS_NOAA20_Thermal_Anomalies_375m_Night",
+ false
+ ],
+ [
+ "MODIS_Aqua_Thermal_Anomalies_Day",
+ false
+ ],
+ [
+ "MODIS_Aqua_Thermal_Anomalies_Night",
+ false
+ ],
+ [
+ "VIIRS_SNPP_Thermal_Anomalies_375m_Day",
+ false
+ ],
+ [
+ "VIIRS_SNPP_Thermal_Anomalies_375m_Night",
+ false
+ ],
+ [
+ "Reference_Features_15m",
+ true
+ ],
+ [
+ "Reference_Labels_15m",
+ true
+ ]
+ ],
"Sea and Lake Ice": [
[
"Reference_Features_15m",
diff --git a/web/js/modules/layers/selectors.js b/web/js/modules/layers/selectors.js
index 3a4236a34..68a250421 100644
--- a/web/js/modules/layers/selectors.js
+++ b/web/js/modules/layers/selectors.js
@@ -493,8 +493,11 @@ export function activateLayersForEventCategory(state, category) {
const { layerConfig } = state.layers;
const categoryLayers = layers[projection][category];
- // Turn off all layers in list first
let newLayers = getActiveLayers(state);
+ if (!categoryLayers) {
+ return newLayers;
+ }
+ // Turn off all layers in list first
newLayers.forEach((layer, index) => {
newLayers = update(newLayers, {
[index]: { visible: { $set: false } },