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
@@ -46,6 +46,9 @@ showRouteLink_TimeOut: function(){
// handling of routing description
show: function(response) {
// activate printing
OSRM.Printing.activate();
// compute query string
var query_string = '?hl=' + OSRM.Localization.current_language;
for(var i=0; i<OSRM.G.markers.route.length; i++)