diff --git a/WebContent/OSRM.base.js b/WebContent/OSRM.base.js index 6fab319cd..91a910a4b 100644 --- a/WebContent/OSRM.base.js +++ b/WebContent/OSRM.base.js @@ -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 = {}; diff --git a/WebContent/main.js b/WebContent/main.js index d9f4da010..76471caa7 100644 --- a/WebContent/main.js +++ b/WebContent/main.js @@ -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