Uncaught TypeError: onUncombineFeatures
and onCombineFeatures
is not a function in `direct_select´ draw mode
#1175
Labels
onUncombineFeatures
and onCombineFeatures
is not a function in `direct_select´ draw mode
#1175
direct_select
mode by clicking on the polygon twice.combine_features
oruncombine_features
button, and experience that there are errors in the console:mapbox-gl-draw/src/modes/object_to_mode.js
Lines 60 to 65 in 02c5e79
I would expect the behavior of the buttons to be similar to in
simple_select
mode when having selected only one polygon: No effect, yet without uncaught type errors.probably the safest is to solve by checking for the function before calling it:
Further, I would also have expected such a TypeError to be detected at compilation time, since both
onCombineFeature
andonUncombineFeature
are well defined as optional in the DrawCustomMode interfaceThe text was updated successfully, but these errors were encountered: