further restructuring of gui buttons

This commit is contained in:
DennisSchiefer
2012-08-23 17:08:55 +01:00
parent f2cd56b329
commit e1cb34cf38
9 changed files with 152 additions and 56 deletions
+3 -1
View File
@@ -47,11 +47,13 @@ init: function() {
// toggle GUI features that need a route to work
activateRouteFeatures: function() {
OSRM.Printing.activate();
document.getElementById("gui-zoom").className = "button";
document.getElementById("gui-zoom").className = "button";
document.getElementById('leaflet-control-locations-route').className = "leaflet-control-locations-route";
},
deactivateRouteFeatures: function() {
OSRM.Printing.deactivate();
document.getElementById("gui-zoom").className = "button-inactive";
document.getElementById('leaflet-control-locations-route').className = "leaflet-control-locations-route-inactive";
},
// click: button "reset"