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 );