Hi Augustin,
You could call the mapping service to get a PNG for a map, you would need to get the dimensions and locations from the current map. This may not work for what you need but could be worth a try, I'm not sure how to access the data already loaded in OpenLayers.
Is there a reason you need to go directly to PDF? Can you present your result as html?
------------------------------
Duri Bradshaw
Spatial IT Consultant
Insight GIS
------------------------------
Original Message:
Sent: 06-04-2019 02:54
From: Augustin Boyer
Subject: Generate a png and pdf from map in SSA
Hello everybody,
I would like to know how to create a png from the map in SSA in Angular extension. I took the code of OpenLayer - https://openlayers.org/en/latest/examples/export-map.html
- https://openlayers.org/en/latest/examples/export-pdf.html
But the code never enter in the method map.once. Does anybody know how to generate a png and then, a pdf in SSA?
Thanks you,
Augustin
------------------------------
Augustin Boyer
GEO RM
Jaunay-Marigny
------------------------------