react-leaflet-draw icon indicating copy to clipboard operation
react-leaflet-draw copied to clipboard

draw polygon can't end

Open akiori opened this issue 6 years ago • 1 comments

when running the example, and using the draw-polygon. after clicking the "first point to close shape", the dashed line is still there.

the console also says "Uncaught TypeError: Cannot read property '_onChange' of undefined" on edit-control.js:46

I think it's a bug.

akiori avatar Mar 02 '18 20:03 akiori

in line 34 of react-leaflet-draw/example/edit-control.js, it should be _onCreated = (e) => {}, not _onCreated(e) {}. then the issue is solved

akiori avatar Mar 06 '18 23:03 akiori