mapbox-gl-draw icon indicating copy to clipboard operation
mapbox-gl-draw copied to clipboard

Draw_polygon mode: polygon disappear when clicking twice on the first or second point

Open mariofornaroli opened this issue 1 year ago • 0 comments

**mapbox-gl-js 2.14.1: **mapbox-gl-draw 1.4.1:

Steps to Trigger Behavior

  1. Go to https://docs.mapbox.com/mapbox-gl-js/example/mapbox-gl-draw/
  2. Click on the map to draw a polygon
  3. 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

https://github.com/mapbox/mapbox-gl-draw/assets/16925256/a4ca34bb-5b59-445b-8de6-ed5b2bab763b

mariofornaroli avatar May 16 '23 03:05 mariofornaroli