mapbox-gl-draw-circle
mapbox-gl-draw-circle copied to clipboard
dragcircle bug
when use dragcirle,it has a err like this
@Liquid-Zhangliquan Could you please provide some steps to reproduce the issue or provide a sample code which is causing the issue?
@Liquid-Zhangliquan Could you please provide some steps to reproduce the issue or provide a sample code which is causing the issue?
as you see,when you chose 'dragcircle' mode,the geometry is undefind in toDisplayFeatures
Hey I meet the same problem just now, where I try to add DragCircleMode to my draw controller like the code below. The same code works fine with CircleMode or other custom modes. However, it doesn't post bad influence to the usage of my webpage.
addDraw(mode){ if(!this.drawControl){ this.drawControl = new MapboxDraw({ defaultMode: 'draw_' + mode, modes: { ...MapboxDraw.modes, draw_circle: DragCircleMode, draw_rectangle: DrawRectangle}}); this.map.addControl(this.drawControl); } },