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
The custom mode makes use of modeOptions in its onSetup function, but these are not being passed via the modeOptions attribute of Draw as I would have expected.
Looking at the source, it seems that modeOptions are only passed on component update, not on initial mount, so modeOptions cannot be used with the default mode.
The text was updated successfully, but these errors were encountered:
I have defined a custom draw mode as described at https://github.com/mapbox/mapbox-gl-draw/blob/main/docs/MODES.md#available-custom-modes.
The custom mode makes use of modeOptions in its
onSetup
function, but these are not being passed via themodeOptions
attribute ofDraw
as I would have expected.Essentially I have:
Looking at the source, it seems that
modeOptions
are only passed on component update, not on initial mount, so modeOptions cannot be used with the default mode.The text was updated successfully, but these errors were encountered: