corrected error and bumped version to 0.1.3
This commit is contained in:
parent
fe420e5bfc
commit
4638e7c24d
@ -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 = {};
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user