vue-amap
vue-amap copied to clipboard
AMap.PolyEditor is not a constructor
VueAMap.initAMapApiLoader({
key: '',
plugin: ['AMap.Scale', 'AMap.OverView', 'AMap.ToolBar', 'AMap.MapType', 'AMap.PolyEditor'],
v: '1.4.4',
});
使用polyline时报错AMap.PolyEditor is not a constructor,这样配置后也还是报错,请问该如何解决?
请问解决了吗
@hopkinson 建议试下这个 https://segmentfault.com/q/1010000011513185/a-1020000012952028 在index.html里引入,VueAMap.initAMapApiLoader 里面的内容删掉即可
在index.html里引入AMap.PolyEditor插件即可。参考这个: 解决AMap.PolyEditor is not a constructor报错