From 224c55dec1a711b64f0e4394159ec61c097d7aef Mon Sep 17 00:00:00 2001 From: DennisSchiefer Date: Thu, 10 May 2012 12:26:56 +0100 Subject: [PATCH] fixed bug that did not always remove drag marker on reset --- WebContent/base/OSRM.Markers.js | 6 +++++- WebContent/gui/OSRM.RoutingGUI.js | 3 +-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/WebContent/base/OSRM.Markers.js b/WebContent/base/OSRM.Markers.js index 09179abbb..444020107 100644 --- a/WebContent/base/OSRM.Markers.js +++ b/WebContent/base/OSRM.Markers.js @@ -24,12 +24,16 @@ OSRM.Markers = function() { this.dragger = new OSRM.DragMarker("drag", {draggable:true,icon:OSRM.G.icons['marker-drag'],dragicon:OSRM.G.icons['marker-drag']});; }; OSRM.extend( OSRM.Markers,{ -removeAll: function() { +reset: function() { + // remove route markers for(var i=0; i