From a912808d81d9ec82b340bbcdd457b7fdd74abd52 Mon Sep 17 00:00:00 2001 From: Bryan Housel Date: Tue, 1 Mar 2016 13:05:52 -0500 Subject: [PATCH] Fix issue with choosing gpx file --- js/id/svg/gpx.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/id/svg/gpx.js b/js/id/svg/gpx.js index b0700ccbc..0677a7056 100644 --- a/js/id/svg/gpx.js +++ b/js/id/svg/gpx.js @@ -123,7 +123,7 @@ iD.svg.Gpx = function(projection, context) { drawGpx.url = function(url) { d3.text(url, function(err, data) { if (!err) { - this.geojson(toGeoJSON.gpx(toDom(data))); + drawGpx.geojson(toGeoJSON.gpx(toDom(data))); redraw(); } }); @@ -135,7 +135,7 @@ iD.svg.Gpx = function(projection, context) { reader = new FileReader(); reader.onload = function(e) { - this.geojson(toGeoJSON.gpx(toDom(e.target.result))).fitZoom(); + drawGpx.geojson(toGeoJSON.gpx(toDom(e.target.result))).fitZoom(); redraw(); };