Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/api/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Api 如何为城镇标签设置谷歌静态地图字体_Api_Google Maps_Google Maps Api 3_Fonts - Fatal编程技术网

Api 如何为城镇标签设置谷歌静态地图字体

Api 如何为城镇标签设置谷歌静态地图字体,api,google-maps,google-maps-api-3,fonts,Api,Google Maps,Google Maps Api 3,Fonts,我需要设置谷歌静态地图的小字体大小。那么,实现相同目标所需的参数是什么呢。因为,我使用下面的url来获取静态映射 http://maps.googleapis.com/maps/api/staticmap?center={$randAppPhoto['latitude']},{$randAppPhoto['longitude']}&scale=2&size=700x400&maptype=terrain&markers={$randAppPhoto['latit

我需要设置谷歌静态地图的小字体大小。那么,实现相同目标所需的参数是什么呢。因为,我使用下面的url来获取静态映射

 http://maps.googleapis.com/maps/api/staticmap?center={$randAppPhoto['latitude']},{$randAppPhoto['longitude']}&scale=2&size=700x400&maptype=terrain&markers={$randAppPhoto['latitude']},{$randAppPhoto['longitude']}&zoom=7&format=jpg&sensor=false

其中,$randAppPhoto是php中的一个数组,具有动态lat,long

我认为不可能更改地图上文本的字体。您可以检查设置地图样式的参数列表。

在URL中将
scale=2
更改为
scale=1
,将使街道名称字体变小,如果您正试图这样做的话。

这不仅会使字体变小,还会使整个地图变小。
scale
参数定义为影响返回的像素数。i、 e.scale=2返回的像素数是scale=1的两倍,同时保留相同的覆盖区域和细节级别,也许你应该看看这个问题,它对我有用