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.
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
Comment #1
jcnventuraDo 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
Comment #2
deverman commentedyes 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.
Comment #3
jcnventuraIt 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
Comment #4
jcnventuraNo further info in more than two weeks. Closing the issue.
Comment #5
grasmash commenteddid you end up getting this working? If so, how did you get print to render the static image?