1

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?

Rutwick Gangurde
  • 4,464
  • 9
  • 46
  • 83
Jayeshkumar Sojitra
  • 2,371
  • 4
  • 30
  • 42
  • possible duplicate of [How to take the screenshot of part of Google Maps use JavaScript](http://stackoverflow.com/questions/11590620/how-to-take-the-screenshot-of-part-of-google-maps-use-javascript) – Álvaro González Jul 26 '13 at 10:14
  • Were you able to take screenshot using HTML2canvas of a map? if so, please tell how did you do it. – Faizan Jan 15 '15 at 15:32

2 Answers2

5

Why not just use google maps image api?

Dziad Borowy
  • 12,045
  • 4
  • 38
  • 51
0

You can try using one of those scripts:

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

Community
  • 1
  • 1
Kenjin
  • 136
  • 1
  • 4