Hi
I am trying to update a rectangle on vertex drag and when using setBounds it returns the error:
TypeError: latlngs[i].__vertex is undefined
I have tried passing in the bounds as new L.latLngBounds, as new L.latLng() and also as an array of all 4 corners. I can't seem to get it to work,
It could be that I'm missing something, any help would be appreciated
Thanks