nakarte

Source code of https://map.sikmir.ru (fork)
git clone git://git.sikmir.ru/nakarte
Log | Files | Refs | LICENSE

commit 395dfc0fcc481d7bb94777032830d2c0586006fa
parent af0a4872001e620f2ed71d286e153442112c75d0
Author: Sergej Orlov <wladimirych@gmail.com>
Date:   Thu,  8 Nov 2018 09:06:39 +0100

[track list] fix plan to track when it contaons only waypoints #155

Diffstat:
Msrc/lib/leaflet.control.track-list/track-list.js | 3+--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/lib/leaflet.control.track-list/track-list.js b/src/lib/leaflet.control.track-list/track-list.js @@ -372,9 +372,8 @@ L.Control.TrackList = L.Control.extend({ } } ); - const boundsCenter = bounds.getCenter(); points.forEach((p) => { - bounds.extend(wrapLatLngToTarget(p.latlng, boundsCenter)); + bounds.extend(wrapLatLngToTarget(p.latlng, bounds)); } ); if (bounds.isValid()) {