printing icon can now deactivates when there is no route

This commit is contained in:
DennisSchiefer
2012-04-25 12:17:36 +01:00
parent ab1e5255eb
commit 94ca30c690
4 changed files with 25 additions and 2 deletions
+4
View File
@@ -49,12 +49,16 @@ OSRM.extend( OSRM.Route,{
hideRoute: function() {
this._current_route.hide();
this._unnamed_route.hide();
// activate printing
OSRM.Printing.deactivate();
},
hideAll: function() {
this._current_route.hide();
this._unnamed_route.hide();
this._old_route.hide();
this._noroute = OSRM.Route.ROUTE;
// activate printing
OSRM.Printing.deactivate();
},
showUnnamedRoute: function(positions) {