diff --git a/WebContent/base/OSRM.Markers.js b/WebContent/base/OSRM.Markers.js index fb202879c..08a87bba1 100644 --- a/WebContent/base/OSRM.Markers.js +++ b/WebContent/base/OSRM.Markers.js @@ -131,5 +131,11 @@ hasTarget: function() { if( this.route[this.route.length-1] && this.route[this.route.length-1].label == OSRM.C.TARGET_LABEL ) return true; return false; +}, + +//relabel all via markers +relabelViaMarkers: function() { + for(var i=1, size=this.route.length-1; i