Skip to content

Commit

Permalink
Update CourseOptions.js
Browse files Browse the repository at this point in the history
Added information about the area on paper. English term?
  • Loading branch information
wlfrdssn authored Dec 25, 2024
1 parent 734e528 commit 219e72f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/CourseOptions.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,12 +87,19 @@ export default function CourseOptions({
index={1}
onChange={(extent) => setPrintArea({ extent })}
/>

<div />
Size on paper
<div>Height: {((extent[3]-extent[1])*(mapScale/printScale)).toFixed(2)} mm ({(printArea.pageHeight/3.937).toFixed()} mm) </div>
<div>Width: {((extent[2]-extent[0])*(mapScale/printScale)).toFixed(2)} mm ({(printArea.pageWidth/3.937).toFixed()} mm) </div>
</div>
</>

);
}



function ExtentInput({ extent, index, onChange }) {
return (
<Input
Expand Down

0 comments on commit 219e72f

Please sign in to comment.