From 7241438502d56b92b63536154711dbcf89d96a64 Mon Sep 17 00:00:00 2001 From: DennisSchiefer Date: Mon, 23 Apr 2012 17:29:18 +0100 Subject: [PATCH] corrected error ne instead of sw direction --- WebContent/base/osrm/OSRM.MapView.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WebContent/base/osrm/OSRM.MapView.js b/WebContent/base/osrm/OSRM.MapView.js index 2e066b667..a48a67075 100644 --- a/WebContent/base/osrm/OSRM.MapView.js +++ b/WebContent/base/osrm/OSRM.MapView.js @@ -38,7 +38,7 @@ OSRM.MapView = L.Map.extend({ sw_point.y+=20; var ne_point = this.project( northeast, zoom); ne_point.y-=20; - sw_point.x+=20; + ne_point.x+=20; bounds.extend( this.unproject(sw_point,zoom) ); bounds.extend( this.unproject(ne_point,zoom) ); this.fitBounds( bounds );