Added an option to disable the editing of the first and last point of a polyline