Possible Duplicate:
Take a screenshot of a webpage with javascript?
I have got a real problem to export a dynamic google map into a jpg or png image.
A client can draw his own trip with a google map API v3 interface with custom markers and some other stuff.
I want to export his trip on jpg image.
I already tried the statics maps and html2canvas but it doesn’t work.
I want to re use the generate image put it in a pdf generate with the fpdf library.
Sorry for my poor english, I’m French and not very good in the Shakespeare’s language.
I already thank you if you can help me because it’s a very big project I have and I’m lost.
1 – Javascript has no access to the file system, therefore you cannot save a file with it.
2 – Saving images from Google Maps is not allowed. See here:
https://developers.google.com/maps/faq#tos_screenshots
you can request permission, but I don’t think it’s easy to obtain, unless you are a paying business customer.