corrected error and bumped version to 0.1.3

This commit is contained in:
DennisSchiefer 2012-04-02 20:57:39 +02:00
parent fe420e5bfc
commit 4638e7c24d
2 changed files with 4 additions and 4 deletions

View File

@ -19,8 +19,8 @@ or see http://www.gnu.org/licenses/agpl.txt.
// [has to be loaded before all other OSRM classes]
var OSRM = {};
OSRM.VERSION = '0.1.2';
OSRM.DATE = '120319';
OSRM.VERSION = '0.1.3';
OSRM.DATE = '120402';
OSRM.CONSTANTS = {};
OSRM.DEFAULTS = {};
OSRM.GLOBALS = {};

View File

@ -172,9 +172,9 @@ OSRM.checkURL = function(){
// center on route (support for old links) / move to given view (new behaviour)
if(zoom == null || center == null) {
var bounds = new L.LatLngBounds( positions );
OSRM.g.map.fitBoundsUI( bounds );
OSRM.G.map.fitBoundsUI( bounds );
} else {
OSRM.g.map.setView(center, zoom);
OSRM.G.map.setView(center, zoom);
}
// compute route