Skip to content

Commit

Permalink
[fix] Using resolution-corrected mapState for image export (#2407)
Browse files Browse the repository at this point in the history
Signed-off-by: Ihor Dykhta <dikhta.igor@gmail.com>
  • Loading branch information
igorDykhta committed Oct 27, 2023
1 parent 7fae622 commit 975a476
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/src/plot-container.tsx
Expand Up @@ -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} />
))}
Expand All @@ -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>
Expand Down

0 comments on commit 975a476

Please sign in to comment.