Skip to content

Commit

Permalink
Only update MapExport scale if changed by PrintSelection
Browse files Browse the repository at this point in the history
  • Loading branch information
manisandro committed Feb 12, 2025
1 parent e63e87e commit fb53e63
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions plugins/MapExport.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -334,10 +334,10 @@ class MapExport extends React.Component {
});
};
geometryChanged = (center, extents, rotation, scale) => {
this.setState({
this.setState(state => ({
extents: extents,
scale: scale
});
scale: scale ?? state.scale
}));
};
export = (ev) => {
ev.preventDefault();
Expand Down

0 comments on commit fb53e63

Please sign in to comment.