0

尝试使用 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”是我所在位置的字符串

4

1 回答 1

1

而不是adress,它应该是address

于 2020-02-03T10:49:16.067 回答