vue-amap icon indicating copy to clipboard operation
vue-amap copied to clipboard

AMap.PolyEditor is not a constructor

Open lunjingjie opened this issue 5 years ago • 3 comments

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,这样配置后也还是报错,请问该如何解决?

lunjingjie avatar Nov 14 '19 02:11 lunjingjie

请问解决了吗

hopkinson avatar Dec 11 '19 15:12 hopkinson

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

JoannaGong avatar Mar 12 '20 03:03 JoannaGong

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

githubchl avatar May 09 '20 02:05 githubchl