Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I realize this is a bit of an open question but are there any known open javascript libraries which facilitate printing an OpenLayers map? I'm looking to produce the content on the client and possibly upload it to convert to PDF or simply set the innerHTML on some dom element.

I started a proof-of-concept but was looking for something which honors various tile sizes and vector markup (IE 8) and all the other complexities that are sure to arise.

share|improve this question
    
What is the source of your map? If it is eg mapserver or mapguide, you could consider rendering your image there. –  johanvdw Mar 28 '12 at 21:23
    
Unknown at design time and varied (Public - Google, Bing, OSM, ArcGIS as well as ArcGIS/ArcIMS, MapGuide, WMS, ...). I'd like a client-side solution for collecting the imagery and vector markup. Once collected probably upload to convert to PDF. Need to embed map in a document. –  ca0v Mar 29 '12 at 3:44

1 Answer 1

I've asked a similar question .

Best answer was using OpenLayers.Control.ExportMap() to generate an image of the canvas.

Here's a DEMO.

share|improve this answer
    
We rolled our own few years back because there wasn't anything available. And it's significant amount of dev. And also had to support older browsers w/o Canvas. If starting anew and supporting only modern browsers this looks like the way to go. –  Vadim Mar 28 '12 at 19:44
1  
I'd be curious to know the challenges you faced. I need to run in IE 8. –  ca0v Mar 29 '12 at 3:32
    
CaptDragon - had to change my question...looking for IE 8 solution otherwise ExportMap + Canvas.toDataURL() was everything I was looking for. –  ca0v Mar 29 '12 at 4:02

Your Answer

 
discard

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.