Skip to content

Kepler.gl is a powerful open source geospatial analysis tool for large-scale data sets.

[fix] Basemap overlay blending updater must pass through entire payload (#2137)

Igor Dykhtadef2ce12ba8b
diff --git a/src/reducers/src/combined-updaters.ts b/src/reducers/src/combined-updaters.ts
index c136505e5..6081426fa 100644
--- a/src/reducers/src/combined-updaters.ts
+++ b/src/reducers/src/combined-updaters.ts
@@ -304,7 +304,7 @@ export const combinedMapStyleChangeUpdater = (
return {
...state,
visState,
- mapStyle: mapStyleChangeUpdater(mapStyle, {payload: {styleType: payload.styleType}})
+ mapStyle: mapStyleChangeUpdater(mapStyle, {payload: {...payload}})
};
};
diff --git a/test/node/reducers/map-style-test.js b/test/node/reducers/map-style-test.js
index be15599f2..1c1019ae1 100644
--- a/test/node/reducers/map-style-test.js
+++ b/test/node/reducers/map-style-test.js
@@ -547,4 +547,3 @@ test('#mapStyleReducer -> MAP_STYLE_CHANGE -> dark basemap to no basemap', t =>
t.end();
});
-