From 25f50434d06bee18ac909f98bcf4d6ebf6a37556 Mon Sep 17 00:00:00 2001 From: Norbert Renner Date: Thu, 21 Aug 2014 15:17:04 +0200 Subject: [PATCH] add GeoJSON 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 0cdb267..5a04707 100644 --- a/js/control/Download.js +++ b/js/control/Download.js @@ -9,10 +9,11 @@ BR.Download = BR.Control.extend({ }, update: function (urls) { - var html = '
 
'; + var html = '
'; if (urls.gpx) { html += 'GPX · '; html += 'KML · '; + html += 'GeoJSON · '; html += 'CSV'; } html += '
' diff --git a/js/index.js b/js/index.js index 5fa9eb0..3d8aa7f 100644 --- a/js/index.js +++ b/js/index.js @@ -179,6 +179,7 @@ if (latLngs.length > 1) { urls.gpx = router.getUrl(latLngs, 'gpx'); urls.kml = router.getUrl(latLngs, 'kml'); + urls.geojson = router.getUrl(latLngs, 'geojson'); urls.csv = router.getUrl(latLngs, 'csv'); }