//地址逆解析插件
this.geoCoder = new AMap.Geocoder({
city: "010", //城市设为北京,默认:“全国”
radius: 1000, //范围,默认:500,
extensions: 'all'
})
![在这里插入图片描述](https://img-blog.csdnimg.cn/3d9d6e49bea24d6b8652ff1137da4256.png)
出现这个报错可以添加 AMap.plugin("AMap.Geocoder",()=>{})
//地址逆解析插件
AMap.plugin("AMap.Geocoder", () => {
this.geoCoder = new AMap.Geocoder({
city: "010", //城市设为北京,默认:“全国”
radius: 1000, //范围,默认:500,
extensions: 'all'
});
})