Generate Image of Google map [closed]

本秂侑毒 提交于 2019-12-23 15:05:01

问题


I want to allow end users of my website to generate image of google map. How is this possible after the User has selected its location on google map and can then generate the image.


回答1:


It's not allowed. See here:

https://developers.google.com/maps/faq#tos_screenshots

Use of Google Maps imagery in printed materials and offline media is subject to the Permission Guidelines published at:

http://www.google.com/permissions/geoguidelines.html

you can request permission, but I don't think it's easy to obtain, unless you are a paying business customer.




回答2:


Besides the "not allowed" part, there might be a way to let your users download the Google Map screen. However this will take some programming. Here is the basic idea:

When the users interact with the Google Map on your page, you can keep track of the used zoom and map boundaries as well as the selected location. With these values, you can use the Google Static Maps API to let your users download a static image.



来源:https://stackoverflow.com/questions/12226521/generate-image-of-google-map

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!