Leaflet.Editable icon indicating copy to clipboard operation
Leaflet.Editable copied to clipboard

vertices dont move correctly when snapping

Open chocho11 opened this issue 7 years ago • 1 comments

hi, in that example ([http://leaflet.github.io/Leaflet.Editable/example/snapping.html] ) when the red polyline is editEnabled(), the vertices of the blue polyline can be dragged and moved but the lines dont follow them !

it seems to have a "TypeError: cyclic object value" message, in line 205 of the leaflet.geometryutil.js file : latlngs = JSON.parse(JSON.stringify(layer.getLatLngs().slice(0)));

Thx

chocho11 avatar Oct 22 '17 12:10 chocho11

the solution proposed works fine for me : https://github.com/makinacorpus/Leaflet.GeometryUtil/issues/59 couuld you add it on your API ?

chocho11 avatar Oct 23 '17 12:10 chocho11