如何使用比例2获取谷歌静态地图,并返回2048x2048像素,无需高级计划

时间:2017-03-27 08:40:40

标签: google-maps google-maps-api-3 google-static-maps

当我得到规模为2的谷歌静态地图时,我只获得最大的地图大小为640px。我怎样才能获得规模为2的谷歌静态地图,最大图像大小为tp 1024而无需升级帐户到高级计划???

1 个答案:

答案 0 :(得分:2)

https://maps.googleapis.com/maps/api/staticmap?center=0,0&zoom=2&size=1024x1024&scale=2

这将返回尺寸为1024x1024且尺度为2的地图。

The documentation声明您可以在没有高级计划的情况下获得1280 x 1280。