Hi we have had trouble getting javascript to work for printing google maps. Has anyone been able to do this successfully? Any tips? We are using the location and gmap module.

Comments

jcnventura’s picture

Status: Active » Postponed (maintainer needs more info)

Do you mean Javascript in the Printer-friendly page or in the PDF?

If it is the PDF, most likely the library won't be able to execute the JavaScript look into http://code.google.com/apis/maps/documentation/staticmaps/ for a possible solution.

João

deverman’s picture

yes I just mean on the printer friendly html page. the link you gave seems like a good solution but I just want to make sure that this is the only way.

jcnventura’s picture

It should be working normally in the HTML page, as all the Javascript, etc. should be included by Drupal automatically. Make sure that your API key is valid for the whole site, and you should be OK.. For the PDF, as the libraries don't execute the Javascript, your only solution is the static image.

João

jcnventura’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

No further info in more than two weeks. Closing the issue.

grasmash’s picture

did you end up getting this working? If so, how did you get print to render the static image?