geoman-io / leaflet-geoman

🍂🗺️ The most powerful leaflet plugin for drawing and editing geometry layers
https://geoman.io
MIT License
2.21k stars 433 forks source link

Drawing Polygon reports error and cannot close the Polygon #1437

Closed huangyingjie closed 6 months ago

huangyingjie commented 9 months ago

I use @geoman-io/leaflet-geoman-free@^2.14.2, the following error occurs when drawing polyon.

image
      this.map.pm.enableDraw('Polygon', {
        tooltips: false,
        snappable: true
      })

I'm sorry I can't reproduce it every time, but it happens.

Falke-Design commented 9 months ago

Can you please try if you can reproduce it on this fiddle: https://jsfiddle.net/3mhcsn2e/