Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
RoboVij opened this issue Nov 10, 2023 · 0 comments
Open

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

RoboVij opened this issue Nov 10, 2023 · 0 comments

Comments

@RoboVij
Copy link

RoboVij commented Nov 10, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant