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
Hi there! On current mapbox-gl-draw version with a custom control set-up, it is not straightforward to add to the mapbox-draw toolbar a button/icon that, when selected, triggers the drawMode change corresponding to that custom control.
I was able to setup a drawRectangle control with some help from miller here , and can set the defaultMode: 'draw_rectangle', to use it when map loads. But adding a custom button that calls my custom draw control can't be done right away.
Note: hiding the existing toolbar and adding a custom one like mentioned here seems to be the way to go at the moment
The text was updated successfully, but these errors were encountered:
Hi there! On current mapbox-gl-draw version with a custom control set-up, it is not straightforward to add to the mapbox-draw toolbar a button/icon that, when selected, triggers the drawMode change corresponding to that custom control.
I was able to setup a drawRectangle control with some help from miller here , and can set the
defaultMode: 'draw_rectangle',
to use it when map loads. But adding a custom button that calls my custom draw control can't be done right away.Note: hiding the existing toolbar and adding a custom one like mentioned here seems to be the way to go at the moment
The text was updated successfully, but these errors were encountered: