Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

Thank you

share|improve this question

ExportMap() was only a prototype feature demonstrating support for HTML5, which won't be implemented until v3 comes out.

The above example was referenced on this page, part of a "Future Features" writeup.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.