vue-amap,高德地图vue项目Uncaught TypeError: AMap.Geocoder is not a constructor
报错
解决方法:
在main.js增加 AMap.Geocoder插件
AMap.initAMapApiLoader({
// 高德key
key: '***',
// 插件集合 (插件按需引入)
plugin: ['AMap.Geolocation','MarkerClusterer','AMap.Heatmap','AMap.Geocoder']
});