ElemeFE / vue-amap

🌍 基于 Vue 2.x 和高德地图的地图组件
https://elemefe.github.io/vue-amap/
MIT License
3.33k stars 584 forks source link

AMap.PolyEditor is not a constructor #579

Open lunjingjie opened 4 years ago

lunjingjie commented 4 years ago
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 commented 4 years ago

请问解决了吗

JoannaGong commented 4 years ago

@hopkinson 建议试下这个 https://segmentfault.com/q/1010000011513185/a-1020000012952028 在index.html里引入,VueAMap.initAMapApiLoader 里面的内容删掉即可

githubchl commented 4 years ago

在index.html里引入AMap.PolyEditor插件即可。参考这个: 解决AMap.PolyEditor is not a constructor报错