commit bf04f61c51ab720e55ed8858a7e47f4e7b3b654c
parent 2423812ffa1e03a8d5cd12252ad0f78db9bab2d3
Author: Sergey Orlov <wladimirych@gmail.com>
Date: Sat, 1 Aug 2020 13:33:39 +0200
track list: do not use pointer node when saving link. Fixes #466
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/lib/leaflet.control.track-list/track-list.js b/src/lib/leaflet.control.track-list/track-list.js
@@ -1262,7 +1262,7 @@ L.Control.TrackList = L.Control.extend({
trackToString: function(track, forceVisible) {
var lines = this.getTrackPolylines(track).map(function(line) {
- var points = line.getLatLngs();
+ var points = line.getFixedLatLngs();
points = L.LineUtil.simplifyLatlngs(points, 360 / (1 << 24));
return points;
}