简体   繁体   中英

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?

为什么不只使用Google Maps Image API

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM