more work on history routes

This commit is contained in:
shiin
2012-05-13 20:28:24 +02:00
parent 101fc5d02f
commit 36f5b36c6b
7 changed files with 427 additions and 133 deletions
+3 -3
View File
@@ -48,7 +48,7 @@ resetRouting: function() {
document.getElementById('gui-input-source').value = "";
document.getElementById('gui-input-target').value = "";
OSRM.G.route.hideAll();
OSRM.G.route.reset();
OSRM.G.markers.reset();
document.getElementById('information-box').innerHTML = "";
@@ -141,9 +141,9 @@ 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();
OSRM.G.route.deactivateHistoryRoutes();
else
OSRM.G.route.storeHistoryRoute();
OSRM.G.route.activateHistoryRoutes();
}
});