Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[fix] Using resolution-corrected mapState for image export #2407

Merged
merged 1 commit into from
Oct 27, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/components/src/plot-container.tsx
Original file line number Diff line number Diff line change
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