Reputation: 535
I'm showing a route in the google map inside my webpage. My map is been showed inside a div as follows
<div id="map_canvas" ></div>
It will be getting updated time to time. How can i get a screen shot of the map and show it in a jQuery dialog box as an image?
It'll be a great help if anyone could help me out with this.
Upvotes: 1
Views: 497
Reputation: 30135
You're not allowed to take a screenshot of google maps yourself and show it on your page. You'll have to use the Static Maps API so you don't get into trouble.
But apart from that it should be no problem to show it inside a fancybox, as Asif pointed out or a jQuery UI Dialog if you prefer.
Upvotes: 1