在我的静态 Google map 中,当我在标记中放置标签时,计数器只显示 7 个标记。
有限制吗?如果是,我怎样才能打破这个限制?
你可以在这里看到它:http://maps.googleapis.com/maps/api/staticmap?center=Bordeaux,FR&zoom=13&size=600x640&maptype=roadmap&markers=color:blue|label:1|44.8424,-0.578465&markers=color:blue|label:2|44.7991,-0.662782&markers=color:blue|label:3|44.8254,-0.557401&markers=color:blue|label:4|44.8398,-0.571568&markers=color:blue|label:5|44.8583,-0.567102&markers=color:blue|label:6|44.8415,-0.582481&markers=color:blue|label:7|44.832,-0.596226&markers=color:blue|label:8|44.8515,-0.573702&markers=color:blue|label:9|44.9683,-0.63589&markers=color:blue|label:10|44.853,-0.572936&markers=color:blue|label:11|44.8625,-0.620819&markers=color:blue|label:12|44.8278,-0.586139&markers=color:blue|label:13|44.8281,-0.552797&markers=color:blue|label:14|44.8894,-0.563988&markers=color:blue|label:15|44.8407,-0.558983&sensor=false
根据 Static Maps API V2 Developer Guide (强调我的):
label
: (optional) specifies a single uppercase alphanumeric character from the set {A-Z, 0-9}. (The requirement for uppercase characters is new to this version of the API.) Note that default and mid sized markers are the only markers capable of displaying an alphanumeric-character parameter. tiny and small markers are not capable of displaying an alphanumeric-character.
您在某些标签中使用了多个字符,这就是它不起作用的原因。
在数字 1-9 之后,您可以使用字母 A-Z,例如 this (我稍微降低了缩放比例,因为并非所有标记都可见)。