I need your advise once more.
I'm trying to save the map as an image and I edited my code according to this example. When I test my site on Chrome the map does not render at all. Chrome's console says "Uncaught TypeError: undefined is not a function" for this line of code
exportMapControl = new OpenLayers.Control.ExportMap();
and "Uncaught ReferenceError: exportMap is not defined" for this line
<input type="button" value="Export Map" onClick="exportMap()" /> <br />
I use openlayers 2.12, geoserver, postGIS. The system is on my laptop. I dont use a proxy, I just edited the Apache's conf file (works fine).
I checked this and there is nowhere an export map control.
If you want to see my code, please let me know.
Also, another question, how to edit the above example to make it work with WMS, WFS and Google layer?