Skip to content

Rectangle setBounds breaks refreshVertexMarkers #204

@DenofTranquility

Description

@DenofTranquility

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

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