From 917ef160c56d25466e34684203cae5fc83eaeb9b Mon Sep 17 00:00:00 2001 From: DennisSchiefer Date: Thu, 19 Apr 2012 11:01:18 +0100 Subject: [PATCH] delete route when reversing it --- WebContent/routing/OSRM.RoutingGUI.js | 1 + 1 file changed, 1 insertion(+) diff --git a/WebContent/routing/OSRM.RoutingGUI.js b/WebContent/routing/OSRM.RoutingGUI.js index 40ead9301..7ce436e60 100644 --- a/WebContent/routing/OSRM.RoutingGUI.js +++ b/WebContent/routing/OSRM.RoutingGUI.js @@ -48,6 +48,7 @@ reverseRouting: function() { // recompute route if needed if( OSRM.G.route.isShown() ) { + OSRM.G.route.hideRoute(); OSRM.Routing.getRoute(); OSRM.G.markers.highlight.hide(); OSRM.RoutingDescription.showSimple( OSRM.G.response );