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

Create polyline with some points non editable #1062

Open
lympe92 opened this issue Aug 17, 2023 · 0 comments
Open

Create polyline with some points non editable #1062

lympe92 opened this issue Aug 17, 2023 · 0 comments

Comments

@lympe92
Copy link

lympe92 commented Aug 17, 2023

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?

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