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?
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?