nakarte

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

commit 73b4e9e1590bfd93b250453804bef2e1d94c5b67
parent d94d1c5ac67fac1fe3f78b3454014d0e50bc31dd
Author: myadzel <myadzel@gmail.com>
Date:   Wed, 29 Jan 2020 10:45:54 +0300

fix longitude precision #307

Diffstat:
Msrc/lib/leaflet.control.elevation-profile/index.js | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lib/leaflet.control.elevation-profile/index.js b/src/lib/leaflet.control.elevation-profile/index.js @@ -972,7 +972,7 @@ const ElevationProfile = L.Class.extend({ var req = []; for (var i = 0; i < latlngs.length; i++) { - req.push(latlngs[i].lat.toFixed(6) + ' ' + latlngs[i].lng.toFixed(5)); + req.push(latlngs[i].lat.toFixed(6) + ' ' + latlngs[i].lng.toFixed(6)); } req = req.join('\n'); const xhrPromise = fetch(this.options.elevationsServer, {method: 'POST', data: req});