You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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?
The text was updated successfully, but these errors were encountered:
Question
Why
Constants.types.POLYGON
is used in onSetup when calling theactivateUIButton
?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?The text was updated successfully, but these errors were encountered: