Skip to content

Commit

Permalink
Use map's scale instead of hardcoded 15000
Browse files Browse the repository at this point in the history
  • Loading branch information
perliedman committed Dec 27, 2024
1 parent 24f820f commit 058d7f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tools/PrintArea.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export default function PrintArea() {
const printAreaSizeMm = [
getWidth(paperExtent),
getHeight(paperExtent),
].map((x) => x * (15000 / course.printScale));
].map((x) => x * (crs.scale / course.printScale));

const isValide =
pageSizeMm[0] >= printAreaSizeMm[0] &&
Expand Down

0 comments on commit 058d7f1

Please sign in to comment.