Kepler.gl is a powerful open source geospatial analysis tool for large-scale data sets.
[fix] Using resolution-corrected mapState for image export (#2407)
Igor Dykhta975a4762bac3
diff --git a/src/components/src/plot-container.tsx b/src/components/src/plot-container.tsxindex 57f554ad8..96796b088 100644--- a/src/components/src/plot-container.tsx+++ b/src/components/src/plot-container.tsx@@ -243,7 +243,7 @@ export default function PlotContainerFactory(const mapContainers = !isSplit ? (<MapContainer index={0} primary={true} {...mapProps} />) : (- <MapsLayout className="plot-container-maps" mapState={mapState}>+ <MapsLayout className="plot-container-maps" mapState={newMapState}>{splitMaps.map((settings, index) => (<MapContainer key={index} index={index} primary={index === 1} {...mapProps} />))}@@ -252,7 +252,7 @@ export default function PlotContainerFactory(return (<StyledPlotContainer className="export-map-instance"><StyledMapContainer ref={this.plottingAreaRef} width={size.width} height={size.height}>- <MapViewStateContextProvider mapState={mapState}>+ <MapViewStateContextProvider mapState={newMapState}>{mapContainers}</MapViewStateContextProvider></StyledMapContainer>