mapbox / mapbox-gl-draw

Draw tools for mapbox-gl-js

Home Page:https://www.mapbox.com/mapbox-gl-js/example/mapbox-gl-draw/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

mariofornaroli opened this issue · 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

issue_mapbox-gl-draw.mp4