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

Bugfix and paper sizes #23

Merged
merged 6 commits into from
Dec 26, 2024
Merged

Conversation

wlfrdssn
Copy link
Contributor

@wlfrdssn wlfrdssn commented Dec 25, 2024

  1. Bugfix (ppen.js): Fixed issue with paper orientation when importing a Purple Pen file. When importing a Purple Pen file the orientation is incorrectly set to landscape (true). Landscape is not used by O-scout based on my findings. I changed the landscape setting to false.

  2. Bugfix (objects.tsx): Fixed error message when adding a description with a single click. The function mapExtentToDescriptionLocations requires an extent, which is given by dragging an area while holding the left mouse button. I added an if-statement to check if the extent array exists. Otherwise an alert is triggered. The alert should eventually be replaced with a better solution.

  3. Added information about paper size in relation to the print area in course settings (CourseOptions.js).

  4. Added paper size to the map when changing the print area. It works on map with scale 1:15 000 but won't work with other map scales. Also modified the stroke around the print area to turn red when the print area exceeds the paper size (PrintArea.js).

Bug fix: Single clicks are not allowed because the function requires extent to work.
Added that the print area turns red if it is drawn larger than the paper size and also added the paper size to be visible on the map.
Added information about the area on paper. English term?
Bug fix: Set landscape to false.
Copy link

vercel bot commented Dec 25, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
o-scout ❌ Failed (Inspect) Dec 26, 2024 11:33am

@perliedman perliedman merged commit 59c9140 into perliedman:master Dec 26, 2024
1 of 2 checks passed
@perliedman
Copy link
Owner

Thanks, looks good! I made some minor tweaks, hope you don't mind!

@wlfrdssn wlfrdssn deleted the wlfrdssn-patch-1 branch December 27, 2024 21:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants