Back to Openlayers

Print To Scale

examples/print-to-scale.html

10.9.0761 B
Original Source

--- layout: example.html title: Print to scale example shortdesc: Example of printing a map to a specified scale. docs: > Example of printing a map to a specified scale. The print is exported as a PDF using the jsPDF library. Unlike the Export PDF example the on screen map is only used to set the center and rotation. The extent printed depends on the scale and page size. To print the scale bar and attributions the example uses the html2canvas library. tags: "print, printing, scale, scaleline, export, pdf, grid" ---

Page size A0 (slow)A1A2A3A4A5 (fast)Resolution 72 dpi (fast)150 dpi200 dpi300 dpi (slow)Scale 1:5000001:2500001:1000001:500001:250001:10000Export PDF