You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My UI allows for lat/lng's to be changed programatically. When that happens I need to move the vertex and update the layer.
I have tried this:
layer.setLatLngs(geojson);
layer.editor.reset();
Which will do the job however as one would expect that remakes the entire editLayer. I have applied some css to the selected vertex and if I call 'reset' I lose that css.
Is there a good way to update the lat/lng of a vertex without calling reset?
The text was updated successfully, but these errors were encountered:
There seems to be a bug that Leaflet.Editable doesn't handle calls to the shapes setLatLngs() function. What you can do to workaround it is disable editing on the shape before you call setLatLngs, call it, then reenable editing
My UI allows for lat/lng's to be changed programatically. When that happens I need to move the vertex and update the layer.
I have tried this:
Which will do the job however as one would expect that remakes the entire editLayer. I have applied some css to the selected vertex and if I call 'reset' I lose that css.
Is there a good way to update the lat/lng of a vertex without calling reset?
The text was updated successfully, but these errors were encountered: