nakarte

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

commit a034447a440a15013cc93346c93fc9466181f65c
parent 002c80d251a4bc7464ce378a76c3fe17439b4b9c
Author: Sergej Orlov <wladimirych@gmail.com>
Date:   Mon,  2 Jul 2018 11:55:50 +0300

rename const for #91

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

diff --git a/src/lib/leaflet.control.track-list/lib/geo_file_exporters.js b/src/lib/leaflet.control.track-list/lib/geo_file_exporters.js @@ -5,7 +5,7 @@ import {saveNktk} from './nktk'; function saveGpx(segments, name, points) { var gpx = [], x, y, - time = '1970-01-01T00:00:01.000Z'; + fakeTime = '1970-01-01T00:00:01.000Z'; gpx.push('<?xml version="1.0" encoding="UTF-8" standalone="no" ?>'); gpx.push( @@ -34,7 +34,7 @@ function saveGpx(segments, name, points) { x = p.lng.toFixed(6); y = p.lat.toFixed(6); //time element is not necessary, added for compatibility to Garmin Connect only - gpx.push('\t\t\t<trkpt lat="' + y + '" lon="' + x + '"><time>' + time + '</time></trkpt>'); + gpx.push('\t\t\t<trkpt lat="' + y + '" lon="' + x + '"><time>' + fakeTime + '</time></trkpt>'); } ); gpx.push('\t\t</trkseg>');