尝试使用 Google Maps 中的 Geocoder Api 设置新地图中心时出现此错误。
geocoder.geocode({adress:this.startPosition},
(results2,status)=>{
if(status=="OK"){
this.map.setCenter(results2[0].geometry.location)
alert(results2[0].geometry.location)
}else{
alert("Geocode was not sucessfull" + status)
}
});
其中“startPosition”是我所在位置的字符串