From 9f2e15bff01c77ce00997c356355dd5234fd0f6e Mon Sep 17 00:00:00 2001 From: Norbert Renner Date: Tue, 27 May 2014 16:08:23 +0200 Subject: [PATCH] CSV download --- js/control/Download.js | 3 ++- js/index.js | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/js/control/Download.js b/js/control/Download.js index c583dc8..0cdb267 100644 --- a/js/control/Download.js +++ b/js/control/Download.js @@ -12,7 +12,8 @@ BR.Download = BR.Control.extend({ var html = '
 
'; if (urls.gpx) { html += 'GPX · '; - html += 'KML'; + html += 'KML · '; + html += 'CSV'; } html += '
' this._content.innerHTML = html; diff --git a/js/index.js b/js/index.js index a20f98d..a1fde29 100644 --- a/js/index.js +++ b/js/index.js @@ -139,6 +139,7 @@ if (latLngs.length > 1) { urls.gpx = router.getUrl(latLngs, 'gpx'); urls.kml = router.getUrl(latLngs, 'kml'); + urls.csv = router.getUrl(latLngs, 'csv'); } download.update(urls);