开发者

grabbing a screenshot from gmaps4rails

开发者 https://www.devze.com 2023-03-27 02:47 出处:网络
So yeah we\'re trying to display a pretty small version of the map and all the user interface elements were getting in the way.. and we realized a screenshot would probably be just fine, so just wonde

So yeah we're trying to display a pretty small version of the map and all the user interface elements were getting in the way.. and we realized a screenshot would probably be just fine, so just wondering if it's开发者_JS百科 possible to generate a screenshot of a map position and just have it display as an image instead of an interactable map.


You can use Google Static Maps to show a non-interactive map without user interface controls (zooming buttons etc.)

As they return an image file it is easy to cache. Please note that Google does not allow caching of maps due to copyright reasons of the map owner, but probably caching is not necessary with the static map.

0

精彩评论

暂无评论...
验证码 换一张
取 消