Google Maps image?

前端 未结 6 1641
慢半拍i
慢半拍i 2020-11-30 02:50

Is there any way to capture the image of a Google Map? I can\'t use the static map because I have my own polylines in the map and I want them in the \"screenshot\".

6条回答
  •  孤街浪徒
    2020-11-30 03:06

    Using Google Maps Content outside of the Service is a violation of the Google Maps API Terms of Use, so although techniques exist for creating the snapshots, Google doesn't give you permission to do so.

    To achieve your intended functionality legally, you either need to use static maps (possibly with reduced content, particularly if the user is using MSIE where the max URL length is quite small) or small real Google Maps.

    I don't seem to have privilege yet to add or edit comments to the question, so I'll mention here that the URL limit in at least some Maps compatible versions of MSIE is 2083 characters, not 8k like it is in most other browsers.

提交回复
热议问题