You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are building a feature where our users shouldn't be able to edit the length of the polyline that are created. However they should be able to move the two endings of the polyline, but not be able to make the polyline longer or shorter. Is that possible to do?
We are using skipMiddleMarkers: true. The polyline starting and ending point of the polyline below:
var latlngs = [
[56.043191, 12.710583],
[56.043413, 12.711087]
];
var polyline = L.polyline(latlngs, {color: 'red'}).addTo(map);
polyline.enableEdit();
The text was updated successfully, but these errors were encountered:
We are building a feature where our users shouldn't be able to edit the length of the polyline that are created. However they should be able to move the two endings of the polyline, but not be able to make the polyline longer or shorter. Is that possible to do?
We are using
skipMiddleMarkers: true
. The polyline starting and ending point of the polyline below:The text was updated successfully, but these errors were encountered: