mapbox-gl-draw-circle icon indicating copy to clipboard operation
mapbox-gl-draw-circle copied to clipboard

dragcircle bug

Open Liquid-Zhangliquan opened this issue 5 years ago • 3 comments

when use dragcirle,it has a err like this image

Liquid-Zhangliquan avatar Aug 15 '19 08:08 Liquid-Zhangliquan

@Liquid-Zhangliquan Could you please provide some steps to reproduce the issue or provide a sample code which is causing the issue?

iamanvesh avatar Aug 15 '19 12:08 iamanvesh

@Liquid-Zhangliquan Could you please provide some steps to reproduce the issue or provide a sample code which is causing the issue? image as you see,when you chose 'dragcircle' mode,the geometry is undefind in toDisplayFeatures

Liquid-Zhangliquan avatar Aug 16 '19 02:08 Liquid-Zhangliquan

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); } },

kaimicity avatar Dec 27 '19 06:12 kaimicity