The
ol.control.Print is a control to export a map as an image.
Use
eligrey/FileSaver
or
MrRio/jsPDF
to save resulting image.
-
The print() method can be used to get an image programmatically.
-
Use the imageType and quality options to adjust image properties.
-
Listen to the print event to do something when image is ready.
-
The printing event is send when loading.