This PR adds an optional scale line or bar when exporting to a PDF for printing.
There is a new checkbox in the Export and Print panel. When ticked a scale line or bar (depending on which one the user has active) will be added to the export.
A scale line/bar will be added to the bottom-right of the PDF export, above the attributions. The position and scale will adapt depending on the size (A4, A3 etc), orientation and the print resolution (150 dpi, 200 dpi etc).
Observation: the scale bar changes in size when you swap between different dpis - appearing bigger at lower dpis and smaller at higher dpis. I think this is to do with how OpenLayers defines the size of a pixel, and the same scaling issue happens with measurements and annotations.
Found an issue with the old school scale bar
It seems to be clipping. I'm guessing this is something to do with html2canvas, but I haven't looked closer yet
This PR adds an optional scale line or bar when exporting to a PDF for printing.
There is a new checkbox in the Export and Print panel. When ticked a scale line or bar (depending on which one the user has active) will be added to the export.
A scale line/bar will be added to the bottom-right of the PDF export, above the attributions. The position and scale will adapt depending on the size (A4, A3 etc), orientation and the print resolution (150 dpi, 200 dpi etc).
Observation: the scale bar changes in size when you swap between different dpis - appearing bigger at lower dpis and smaller at higher dpis. I think this is to do with how OpenLayers defines the size of a pixel, and the same scaling issue happens with measurements and annotations.
On staging for full testing.
Closes #292