From 2bf573dbe10b6da3bcee83d2c3fb30a550c6059f Mon Sep 17 00:00:00 2001 From: DennisSchiefer Date: Mon, 16 Apr 2012 12:28:51 +0100 Subject: [PATCH 1/2] bug in position of " in string --- WebContent/printing/OSRM.Printing.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/WebContent/printing/OSRM.Printing.js b/WebContent/printing/OSRM.Printing.js index 784dd71d5..538507769 100644 --- a/WebContent/printing/OSRM.Printing.js +++ b/WebContent/printing/OSRM.Printing.js @@ -71,7 +71,8 @@ show: function(response) { route_desc += ''; route_desc += ''; - route_desc += ''; + route_desc += ''; + console.log(route_desc); route_desc += ""; route_desc += ''; From f2efcfc588f75c391946b1cf8d5600fcf849d3c9 Mon Sep 17 00:00:00 2001 From: DennisSchiefer Date: Mon, 16 Apr 2012 16:03:59 +0100 Subject: [PATCH 2/2] increased padding when centering on a route --- WebContent/OSRM.Map.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/WebContent/OSRM.Map.js b/WebContent/OSRM.Map.js index 78c4755a7..90adeabc7 100644 --- a/WebContent/OSRM.Map.js +++ b/WebContent/OSRM.Map.js @@ -39,13 +39,13 @@ OSRM.MapView = L.Map.extend({ var zoom = this.getBoundsZoom(bounds); var sw_point = this.project( southwest, zoom); if( OSRM.GUI.visible == true ) - sw_point.x-=OSRM.GUI.width/2; + sw_point.x-=OSRM.GUI.width/2+20; else - sw_point.x-=10; - sw_point.y+=10; + sw_point.x-=20; + sw_point.y+=20; var ne_point = this.project( northeast, zoom); - ne_point.y-=10; - sw_point.x+=10; + ne_point.y-=20; + sw_point.x+=20; bounds.extend( this.unproject(sw_point,zoom) ); bounds.extend( this.unproject(ne_point,zoom) ); this.fitBounds( bounds );