-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1124 from geoadmin/fix-PB-1140-minimal-scale-for-…
- Loading branch information
Showing
4 changed files
with
13 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
// In the old mapviewer, a magic number (90) was set to make some compensation between the print and the viewer, | ||
// to keep the scale between the two services. In the current implementation, 144 seems to be giving the best results. | ||
export const PRINT_DPI_COMPENSATION = 144 | ||
|
||
// when the scale is too low, the print backend can't read the exponent. | ||
//So when there is a non 0 scale, we set its minimum to 0.0001 | ||
export const MIN_PRINT_SCALE_SIZE = 0.0001 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters