【问题标题】:InvalidValueError: unknown property adress [closed]InvalidValueError:未知属性地址[关闭]
【发布时间】:2020-01-27 14:32:44
【问题描述】:

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

【问题讨论】:

  • 应该是address
  • 是的。谢谢。

标签: vue.js geocoder


【解决方案1】:

应该是address,而不是adress

【讨论】:

    猜你喜欢
    • 2016-11-28
    • 2018-12-01
    • 2018-08-30
    • 1970-01-01
    • 2012-12-20
    • 2023-01-04
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多