nakarte

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

commit 2abc4c481c3195d2925178d761a5941b14585ab2
parent cd35f5c243e7a0ad28bd495ffccc1709ffe36cbe
Author: Sergej Orlov <wladimirych@gmail.com>
Date:   Wed, 28 Dec 2022 17:05:16 +0100

[track list] Show message if file contains no geodata

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

diff --git a/src/lib/leaflet.control.track-list/track-list.js b/src/lib/leaflet.control.track-list/track-list.js @@ -398,6 +398,10 @@ L.Control.TrackList = L.Control.extend({ } else { message += ', loaded data can be invalid or incomplete'; } + } else if (data_empty) { + message = + 'No data could be loaded from file "{name}". ' + + 'File is empty or contains only unsupported data.'; } if (message) { message = L.Util.template(message, {name: geodata.name});