From 4d28f022732c85012fe422f7853c1d367abc016d Mon Sep 17 00:00:00 2001 From: shiin Date: Wed, 9 May 2012 22:34:27 +0200 Subject: [PATCH] route history test 2 --- WebContent/base/OSRM.Routes.js | 32 +++++++++++++++++--------------- 1 file changed, 17 insertions(+), 15 deletions(-) diff --git a/WebContent/base/OSRM.Routes.js b/WebContent/base/OSRM.Routes.js index 8c665f815..e95b563c4 100644 --- a/WebContent/base/OSRM.Routes.js +++ b/WebContent/base/OSRM.Routes.js @@ -36,7 +36,7 @@ OSRM.Route = function() { // {dashed:false, color:'#000099', weight:5}, // {dashed:false, color:'#000077', weight:5} // ]; -// this._route_history = []; +// this._route_history = []; this._noroute = OSRM.Route.ROUTE; }; @@ -45,18 +45,20 @@ OSRM.Route.ROUTE = false; OSRM.extend( OSRM.Route,{ showRoute: function(positions, noroute) { -// if( document.getElementById('option-show-previous-routes').checked == true) -// if(!this._noroute) { -// this._route_history.push( this._current_route ); -// if(this._route_history.length==6) { -// this._route_history[0].hide(); -// this._route_history.splice(0,1); -// } -// for(var i=0,size=this._route_history.length; i