I need to implement an automatic pdf report generator on a web site. In the generated pdf file I need to insert images from maps extracted from OpenLayers with a Google Map base layer.

On top of Google Map I have an overlay with some custom OWS (WMS/WFS etc).

Is this possible? And is it allowed? I was reading the ToS of Google, and it is not totally clear to me.


Can be a grey area...

10.1.2 Restrictions against Commercial Use.

(a) No Fees. You must not charge users or any other third party any fee for the use of the Maps API Implementation, the Service, or the Content, except as permitted under Section 9.1.2 (Exceptions). (b) No Direct Marketing. You must not print more than 5,000 copies of sales collateral materials containing a screenshot of the Content for purposes of commercial sales lead generation ("Direct Marketing") or incorporate the Content as a core part of printed matter (such as printed maps or guide books) that you redistribute for a fee. You must contact the Google Maps API Premier sales team to obtain a direct license if you desire to do either of the above.

So you cannot make a pdf and distribute it.

But you can make a print button on your map - as that is a local 'one off' copy. As long as you do not charge for this service.

You can also use the Google Maps Static API - to create an image that will be printer friendly (points/markers, lines and polygons overlay are supported.)

High Resolution is new feature

more info: http://code.google.com/apis/maps/documentation/staticmaps/

another potential solution https://stackoverflow.com/questions/5664492/generate-pdf-on-the-server-from-google-maps-api

| improve this answer | |
  • I need to have an overlay with OWS on top of Google Maps, not sure if with the Static API this is possible. – capooti Sep 2 '11 at 6:38
  • use OWS, but when the user requires to print call a request from the static api - user will be allowed to print the map. – Mapperz Sep 2 '11 at 13:48

this would have been not possible until a little while ago. Since the ToS prevented it. We cannot make direct tile requests to google base map tiles. The static maps api also had the restriction that only browsers can make the requests. But google has recently changed their ToS to allow making static map requests from non-browser application provided that the image displayed anywhere is hyperlinked back to google. They did it to allow mobile apps to display maps. So, you can actually pull it off if you can manage to link that google base map image in your PDF to link to google. Not sure if you want to go thru all that trouble :)

Thank You, Vish

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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