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.

What is the best solution so far for printing Google Maps as a base layer of Vector layers in Geoserver/OpenLayers application ?

I used to print WMS layers using GeoExt print page example, but when I tried it with Google Maps, I got a blank file !

share|improve this question

4 Answers 4

According to this thread at the GeoExt mailing list:

Re: [Users] Printing google maps using geoext and geoserver Andreas Hocevar Mon, 23 Jan 2012 04:37:31 -0800

Hi,

the GMaps API Terms of Use don't allow you to print. If you only want to print the map background, click on the Google logo in your map to view the same extent in Google Maps, where you can print it.

share|improve this answer
1  
Confirmed, in all apps where we need a print solution we add multiple background maps for the user to choose, and allow print only on top of the free ones (e.g., OpenStreetMap) to avoid legal issues with Google. –  Andrea Aime Sep 26 '12 at 17:20

You can request static images to print from Google Maps API (Static API v2)

If using the free version (scale=2) can get 1280x1280

Free    640x640     640x640 (returns 1280x1280 pixels)  Not available.
Google Maps API for Business    2048x2048   1024x1024 (returns 2048x2048 pixels)    512x512 (returns 2048x2048 pixels)

source: https://developers.google.com/maps/documentation/staticmaps/

You can use Openlayers to generate these images see the example:

http://openlayers.org/dev/examples/google-static.html

share|improve this answer

For professional output (cartographic products!) you can try PDF generation, see wkhtmltopdf or PrinceXML.

Any thing that you see at the browser can be printed, and you can control paper size (A2,A3,A4,Letter), page breaks, etc. with CSS2 paged media.

share|improve this answer

FOR FIREFOX

download and install the addon SCREENGRAB

@ Googlemaps select area of interest and 'Print Send Link'

 click on “Customize and preview embedded map” 
  1. Customize 'click' custom 'customize Width/Height
  2. Copy and paste this HTML to embed in your website select all - copy open NOTEPAD and paste - save as txt right click and open with FIREFOX click SCREENGRAB Save and “Complete Page/Frame …”
share|improve this answer

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.