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
@jithintomz please provide a fiddle of this bug happening along with the versions of mapbox-gl-draw and mapbox-gl-js that you are using per the issue template.
Here is the solution for deleting polygon. created_ids = draw.add(draw_feature); draw.changeMode('simple_select',{featureIds:[created_ids[0]]});
It's working at my side, I hope it will work for you too.
FYI, it seems that not deleting a feature from direct select mode is intended behavior. However, you can override the mode's toTrash function and get it working. See this PR for how:
I am trying to select a newly created object in draw in code.
created_ids = draw.add(draw_feature); draw.changeMode('direct_select',{featureId:created_ids[0]});
The feature gets selected,but delete does not work on clicking trash icon.
When I deselect and reselect the feature using pointer delete works.
The text was updated successfully, but these errors were encountered: