G
G
Grigory Shein2020-08-18 04:36:24
leaflet
Grigory Shein, 2020-08-18 04:36:24

How to edit single polygon in react-leaflet?

I use https://github.com/alex3165/react-leaflet-draw

I want to make it so that by clicking on a button outside the map, you can edit one polygon
89756271-3005d300-db0c-11ea-9920-c37057bb7a7a.png

through refs I can get a huge object
5f3b305b0feab869532117.png
But of course it's hard to figure it out. How to find an object on which to call edit() or something like that?

Filed an issue https://github.com/alex3165/react-leaflet-draw/iss...

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question