Leaflet.Editable
Leaflet.Editable copied to clipboard
vertices dont move correctly when snapping
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
the solution proposed works fine for me : https://github.com/makinacorpus/Leaflet.GeometryUtil/issues/59 couuld you add it on your API ?