Jayeshkumar Sojitra
Jayeshkumar Sojitra

Reputation: 2511

How to take screenshot of a Google map using JavaScript or jQuery?

I want to take a 'screenshot' of a google map in my html file using JavaScript.

The map is currently loading in div tags, so I am not able to get image using this <div> tag.

But if I can load it in canvas <canvas> then I can take a screenshot of it very easily, can anybody tell me solution for this problem - that is, how can I load a google map in canvas.

Or is there any alternative solution for this?

Upvotes: 2

Views: 17043

Answers (2)

Dziad Borowy
Dziad Borowy

Reputation: 12589

Why not just use google maps image api?

Upvotes: 4

Kenjin
Kenjin

Reputation: 136

You can try using one of those scripts:

Credits to How to take the screenshot of part of Google Maps use JavaScript

Upvotes: 0

Related Questions