google 静态地图上出现额外标记
Extra markers appearing on google static map
任何人都可以向我解释为什么 URL 的 google 静态地图也显示法国的位置吗?
https://maps.googleapis.com/maps/api/staticmap?
center=USA&
scale=2&
size=1920x360&
maptype=roadmap&
region=us&
markers=size:tiny%7Ccolor:red%7C
label:M%7Cnew+york,ny%7C
label:M%7Cmobile,al%7C&
key=
显然为了安全起见我已经删除了我的密钥
您有一个错误的标记样式,它不在 &markers=
参数的开头(根据 the documentation 那些必须在列表的开头:
The set of markerStyles is declared at the beginning of the markers declaration and consists of zero or more style descriptors separated by the pipe character (|), followed by a set of one or more locations also separated by the pipe character (|).
label:M%7Cmobile,al%7C&
代码片段:
<img src="https://maps.googleapis.com/maps/api/staticmap?center=USA&scale=2&size=1920x360&maptype=roadmap®ion=us&markers=size:tiny%7Ccolor:red%7Clabel:M%7Cnew+york,ny%7Cmobile,al%7C" />
任何人都可以向我解释为什么 URL 的 google 静态地图也显示法国的位置吗?
https://maps.googleapis.com/maps/api/staticmap?
center=USA&
scale=2&
size=1920x360&
maptype=roadmap&
region=us&
markers=size:tiny%7Ccolor:red%7C
label:M%7Cnew+york,ny%7C
label:M%7Cmobile,al%7C&
key=
显然为了安全起见我已经删除了我的密钥
您有一个错误的标记样式,它不在 &markers=
参数的开头(根据 the documentation 那些必须在列表的开头:
The set of markerStyles is declared at the beginning of the markers declaration and consists of zero or more style descriptors separated by the pipe character (|), followed by a set of one or more locations also separated by the pipe character (|).
label:M%7Cmobile,al%7C&
代码片段:
<img src="https://maps.googleapis.com/maps/api/staticmap?center=USA&scale=2&size=1920x360&maptype=roadmap®ion=us&markers=size:tiny%7Ccolor:red%7Clabel:M%7Cnew+york,ny%7Cmobile,al%7C" />