Edit polygon points via input field, without using mouse on map
RoboVij opened this issue · 0 comments
RoboVij commented
I know how to change the input field's value when the polygon is changed.
that.map.on('editable:editing', ( e: any ) => {
that.vertexMarkersLayer.clearLayers();
that.setVertexMarkers(e.layer.getLatLngs());
that.setNewPolygonCoordinates(e.layer.getLatLngs());
...
})
But is there a way to live update the polygon points in map when a point's value is changed via input field? So no clicking or dragging with mouse.
On the API page there's a reset()
method. Is that it? If yes, how to use it? Any example would be really helpful.