New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
take screenshot of google map using javascript #485
Comments
You can't render images (google maps tiles in this case) that reside under different origin unless they are served with cors headers. One way you can overcome this is by using a proxy for the images. |
I have tried with php proxy server but facing error: "Uncaught I have tried this proxy server: On Sat, Dec 13, 2014 at 11:11 PM, Niklas von Hertzen <
HARDIK SHAH |
I am facing the same issue. Did you find a solution for this? I want to get a screenshot for google maps using html2canvas. Appreciate your reply. |
Bump. Any Updates? |
Passing |
I am facing the same issue. I tried using useCORS: true and allowTaint: false in the Map Options but that did not help. I am trying to get the screenshot only after the page is loaded. Am I missing anything? |
I'm getting an issue too when taking screenshots of Google Maps, I get this error:
|
Hi
I tried following code: this div "#map-canvas" contents google map.
$('#map-canvas').html2canvas({
onrendered: function (canvas) {
var img = canvas.toDataURL("image/png");
window.open(img);
}
});
}
Using this code I am getting blank map.
Please find output of Google map.
Let me know how to overcome with this issue.
The text was updated successfully, but these errors were encountered: