From 4ff4fcf516a04ef587e19c6a758a4c3b9ce7fc89 Mon Sep 17 00:00:00 2001 From: DennisSchiefer Date: Thu, 5 Apr 2012 09:08:41 +0200 Subject: [PATCH] corrected bug in reverse geocoder timeout handler --- WebContent/OSRM.Geocoder.js | 2 +- WebContent/routing/OSRM.Routing.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/WebContent/OSRM.Geocoder.js b/WebContent/OSRM.Geocoder.js index 6896d702c..47f18e00d 100644 --- a/WebContent/OSRM.Geocoder.js +++ b/WebContent/OSRM.Geocoder.js @@ -200,7 +200,7 @@ _showReverseResults_Timeout: function(response, parameters) { if(!parameters.do_fallback) return; - updateLocation(parameters.marker_id); + OSRM.Geocoder.updateLocation(parameters.marker_id); } }; \ No newline at end of file diff --git a/WebContent/routing/OSRM.Routing.js b/WebContent/routing/OSRM.Routing.js index 2796d187d..b7283054b 100644 --- a/WebContent/routing/OSRM.Routing.js +++ b/WebContent/routing/OSRM.Routing.js @@ -72,6 +72,7 @@ showRoute: function(response) { return; OSRM.G.via_points = response.via_points.slice(0); + console.log(OSRM.G.via_points); if(response.status == 207) { OSRM.RoutingGeometry.showNA(); OSRM.RoutingNoNames.showNA();