I have used Baidu Maps before, and there is a DrawingManager, that can click on the map to draw a polygon.
//
this.drawingManager = new BMapLib.DrawingManager(this.map, {
isOpen: false, //
enableDrawingTool: false, //
polygonOptions: styleOptions //
})
this.drawingManager.setDrawingMode(window.BMAP_DRAWING_POLYGON)
//
this.drawingManager.addEventListener("polygoncomplete", this.polygoncomplet)
now want to use vue-amap or Amap to achieve [mouse click to draw a polygon on the map] function, I see Amap development document examples are written in the code some fixed coordinate points, and then to draw, and then through PolyEditor to adjust the polygon just drawn. Is there a way to draw it directly on the map?