Skip to content

Create polyline with some points non editable #1062

@lympe92

Description

@lympe92

Hello guys,
I use leaflet draw to create a polyline. I created a polyline programmatically.

this.polylineDrawer = new L.Draw.Polyline(this.map, {})
this.polylineDrawer.enable();

allMarkerscoords.forEach((mCoord)=> {let latlng=L.latLng(mCoord[0], mCoord[1]);
  this.polylineDrawer.addVertex(latlng);
})

this.polylineDrawer.completeShape()

I want to know if i can keep some points of editable polyline as non editable. How can i do that?

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