Skip to content

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

[Bug] Fix missing 3d building layer in image export (#361)

Shan He87185e102017
diff --git a/src/components/plot-container.js b/src/components/plot-container.js
index b1bdb850f..adecb1ff1 100644
--- a/src/components/plot-container.js
+++ b/src/components/plot-container.js
@@ -76,12 +76,12 @@ export default function PlotContainerFactory(MapContainer) {
this.mapStyleSelector,
this.resolutionSelector,
(mapStyle, resolution) => ({
+ ...mapStyle,
bottomMapStyle: scaleMapStyleByResolution(
mapStyle.bottomMapStyle,
resolution
),
- topMapStyle: scaleMapStyleByResolution(mapStyle.topMapStyle, resolution),
- visibleLayerGroups: mapStyle.visibleLayerGroups
+ topMapStyle: scaleMapStyleByResolution(mapStyle.topMapStyle, resolution)
})
);