Skip to content

Edit polygon points via input field, without using mouse on map #216

@RoboVij

Description

@RoboVij

image

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions