history routes work now (i hope)

This commit is contained in:
DennisSchiefer
2012-05-11 16:25:06 +01:00
parent e7b3590352
commit 14ca66459a
3 changed files with 26 additions and 13 deletions
+4 -4
View File
@@ -140,10 +140,10 @@ deleteMarker: function(marker_id) {
//click: checkbox "show previous routes"
showPreviousRoutes: function(value) {
// if( document.getElementById('option-show-previous-routes').checked == false)
// OSRM.G.route.clearHistoryRoutes();
// else
// OSRM.G.route.storeHistoryRoute();
if( document.getElementById('option-show-previous-routes').checked == false)
OSRM.G.route.clearHistoryRoutes();
else
OSRM.G.route.storeHistoryRoute();
}
});