Draw_polygon mode: polygon disappear when clicking twice on the first or second point
mariofornaroli opened this issue · comments
Mario Fornaroli commented
**mapbox-gl-js 2.14.1:
**mapbox-gl-draw 1.4.1:
Steps to Trigger Behavior
- Go to https://docs.mapbox.com/mapbox-gl-js/example/mapbox-gl-draw/
- Click on the map to draw a polygon
- Click once again on the same point (it happens when you click twice in a raw on the first or second point)
Expected Behavior
One of the following two expected behaviour:
- The polygon is removed and the user can draw a new polygon
- The point is removed and the user can continue drawing
Actual Behavior
The polygon disappear and the user can’t draw a new polygon. It can only drag the map