Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dragcircle bug #11

Open
Liquid-Zhangliquan opened this issue Aug 15, 2019 · 3 comments
Open

dragcircle bug #11

Liquid-Zhangliquan opened this issue Aug 15, 2019 · 3 comments

Comments

@Liquid-Zhangliquan
Copy link

when use dragcirle,it has a err like this
image

@iamanvesh
Copy link
Owner

iamanvesh commented Aug 15, 2019

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

@Liquid-Zhangliquan
Copy link
Author

@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

@kaimicity
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants