PB-818: Ensuring scales are respected on print - #patch
Issue : When we were sending print requests, the scales of the symbols and texts in kmls were off. For icons, they were too small, and the texts were too big.
Fix : We corrected the scales for icons and labels. Icons used a DPI adaptation of * 90 / 254 which was inherited from the old mapviewer. After some empirical testing, it looks like on the new mapviewer needs a *150 / 254 DPI adaptation Labels were not using the 'scale' parameter for the fonts at all, and they now also use a 150 / 254 DPI adaptation.
It is important to note that the '254' given here is a computed value, as some layers will have smaller resolutions and their DPI will be used in those situations
Still To Do : Text alignment and offsets
web-mapviewer
Run #3283
Run Properties:
Passed #3283 •
f4e125cf46: PB-818: adapt unit tests
| Project |
web-mapviewer
|
| Branch Review |
bugfix-PB-818-font-and-image-size-dont-match-in-print
|
| Run status |
|
| Run duration | 04m 52s |
| Commit |
|
| Committer | Martin Künzi |
| View all properties for this run ↗︎ | |
| Test results | |
|---|---|
|
|
0
|
|
|
0
|
|
|
21
|
|
|
0
|
|
|
210
|
| View all changes introduced in this branch ↗︎ | |