TransWikia.com

OpenLayers print preview

Geographic Information Systems Asked by R. Kut on July 6, 2021

I’m trying to accomplish something similar to what you have in Google Earth, if you print the map.
You have an area, where you can see what you will get on the paper when you print, which have the right aspect ratio according to the DIN-Format.

enter image description here

I checked the OpenLayers example how to print from here https://openlayers.org/en/latest/examples/export-pdf.html.

But you actually don’t get what you see, depend on the DPI I choose I can see map sections beyond the viewport.

What should I keep in mind if I want to implement this feature?

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP