From 0940377fa27d1dff80aec35eebdc25be6ad1d120 Mon Sep 17 00:00:00 2001 From: Julien Veyssier Date: Tue, 9 May 2017 03:00:09 +0200 Subject: [PATCH] refs #14 splitted lines get attributes from original line; fix style when split --- js/Control.Draw.Plus.js | 4 +++- js/gpxedit.js | 47 +++++++++++++++++++++++++++++++++-------- 2 files changed, 41 insertions(+), 10 deletions(-) diff --git a/js/Control.Draw.Plus.js b/js/Control.Draw.Plus.js index 4865e51..97bd0de 100644 --- a/js/Control.Draw.Plus.js +++ b/js/Control.Draw.Plus.js @@ -261,6 +261,7 @@ L.Edit.PolyVerticesEdit.include({ for (f in lls) { if (lls[f].length > 1) { var p = new L.Polyline(lls[f]); + p.gpxedit_id = this._poly.gpxedit_id; if (times[f].length === p._latlngs.length) { for (var i=0; i