
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.
I know how to change the input field's value when the polygon is changed.
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.