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

Question: why Constants.types.POLYGON is used when calling activateUIButton? #16

Open
ericxinzhang opened this issue Jun 28, 2023 · 0 comments
Labels
question Further information is requested

Comments

@ericxinzhang
Copy link

Question

Why Constants.types.POLYGON is used in onSetup when calling the activateUIButton?

I am asking because I implemented drawing polygon and circle on map using mapbox-gl-draw and maplibre-gl-draw-circle, the money patch so as to add a circle button into the existing toolbar.

I created a demo here.

However because the POLYGON constant is used, now when I click on my circle button, the polygon button shows as selected (with the active class). Was it because mapbox-gl-draw (specifically ui.js) does not really support custom mode?

@hbuchel hbuchel added the question Further information is requested label Jun 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants